Advertisements

remove_custom_image_header

Definition:
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;

}

10190

Advertisements

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:

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: