Last active
December 31, 2015 21:39
-
-
Save lordspace/8047826 to your computer and use it in GitHub Desktop.
Use this snippet as a starting point when overriding functions from the parent theme (functions.php).
The snippet might look like it's missing a closing php tag but this is done so there are no extra spaces added.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Make sure that the function name matches the function name in the parent theme's functions.php file. | |
Also in the parent theme there must be a block e.g. !function_exists('function_name_that_you_want_to_override') | |
that will tell you that it is safe to override that function. | |
*/ | |
function function_name_that_you_want_to_override() { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment