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!