Skip to content

Instantly share code, notes, and snippets.

@lordspace
Last active December 31, 2015 21:39
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 lordspace/8047826 to your computer and use it in GitHub Desktop.
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.
<?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