Created
November 8, 2012 23:41
-
-
Save dancameron/4042645 to your computer and use it in GitHub Desktop.
functions override method
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
//////////////////////////////////////////// | |
// Child Theme functions override support // | |
//////////////////////////////////////////// | |
// include functions-parent-override.php from the child theme if it exists. the child theme functions.php is loaded before the template functions.php so we need a place to load overrides afterwards (if necessary) | |
if ( file_exists( trailingslashit( STYLESHEETPATH ).'functions-parent-override.php' ) && TEMPLATEPATH != STYLESHEETPATH ) { | |
include_once trailingslashit( STYLESHEETPATH ).'functions-parent-override.php'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment