Skip to content

Instantly share code, notes, and snippets.

@macbookandrew
Last active November 19, 2015 16:05
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 macbookandrew/aabd9d98a94fdc7e6f63 to your computer and use it in GitHub Desktop.
Save macbookandrew/aabd9d98a94fdc7e6f63 to your computer and use it in GitHub Desktop.
Remove all custom header output from 2013 WordPress theme
function remove_custom_header() {
remove_theme_support( 'custom-header' );
}
// the number 12 is key here - the custom header is added with priority 11, so this has to fire after that function in order to remove it
add_action( 'after_setup_theme', 'remove_custom_header', 12 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment