function remove_custom_image_header() {}

Remove image header support.

Return values

returns:Whether support was removed.

Source code

function remove_custom_image_header() {

	if ( ! current_theme_supports( 'custom-header' ) )

		return false;

	$callback = get_theme_support( 'custom-header' );

	remove_action( 'wp_head', $callback[0]['callback'] );

	_remove_theme_support( 'custom-header' );

	remove_theme_support( 'custom-header-uploads' );

	if ( is_admin() ) {

		remove_action( 'admin_menu', array( &$GLOBALS['custom_image_header'], 'init' ) );

		unset( $GLOBALS['custom_image_header'] );


	return true;



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: