add_custom_background [ WordPress Function ]
add_custom_background ( $wp_head_callback = '', $admin_head_callback = '', $admin_preview_callback = '' )
| Parameters: |
|
| See: | |
| Defined at: |
|
Soorgelijke functies: _custom_background_cb, remove_custom_background, add_custom_image_header, _custom_header_background_just_in_time, get_background_color
Add callbacks for background image display.
Source
<?php
function add_custom_background( $wp_head_callback = '', $admin_head_callback = '', $admin_preview_callback = '' ) {
_deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-background\', $args )' );
$args = array();
if ( $wp_head_callback )
$args['wp-head-callback'] = $wp_head_callback;
if ( $admin_head_callback )
$args['admin-head-callback'] = $admin_head_callback;
if ( $admin_preview_callback )
$args['admin-preview-callback'] = $admin_preview_callback;
return add_theme_support( 'custom-background', $args );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/add custom background « WordPress Codex
This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions.
codex.wordpress.org - "add_custom_background" only for the home page - WordPress
I'd like to add the custom background to the home page only. To do this I'd like to customize the _custom_background_cb() function, in includes/theme.php line ...
wordpress.org - How to Enable Custom Background in WordPress 3.0 Themes
Apr 11, 2010 ... add_custom_background();. Then under ... Same situation here: Fatal error: Call to undefined function add_custom_background() in ...
www.wpbeginner.com - WordPress 3.0 Theme Tip: Custom Backgrounds » Otto on WordPress
Apr 12, 2010 ... Quick and simple way to add the new custom background selector to your WordPress 3.0 theme. add_custom_background();. Seriously.
ottopress.com