Skip to content

Instantly share code, notes, and snippets.

@dancameron
Created November 8, 2012 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dancameron/4042645 to your computer and use it in GitHub Desktop.
Save dancameron/4042645 to your computer and use it in GitHub Desktop.
functions override method
////////////////////////////////////////////
// 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