Revert "Revert "function.php""

This reverts commit 08c8137a070be37f6c45edd67a37a26ca27c4ee1.