Last active
November 19, 2015 16:05
-
-
Save macbookandrew/aabd9d98a94fdc7e6f63 to your computer and use it in GitHub Desktop.
Remove all custom header output from 2013 WordPress theme
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
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