Skip to content

Instantly share code, notes, and snippets.

@lordspace lordspace/functions.php
Last active Dec 31, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.