remove_custom_background

Definition:
function remove_custom_background() {}

Remove custom background support.

Return values

returns:Whether support was removed.

Source code

function remove_custom_background() {

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

		return false;



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

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

	_remove_theme_support( 'custom-background' );



	if ( is_admin() ) {

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

		unset( $GLOBALS['custom_background'] );

	}



	return true;

}

10188

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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: