wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
add_custom_background is deprecated since version 3.4.0!
Alternative: add_theme_support( 'custom-background', $args )
Alternative: add_theme_support( 'custom-background', $args )
add_custom_background › WordPress Function
Seit3.0.0
Veraltet3.4.0
› add_custom_background ( $wp_head_callback = '', $admin_head_callback = '', $admin_preview_callback = '' )
Parameter: (3) |
|
Siehe: | |
Definiert in: |
|
Codex: |
Add callbacks for background image display.
Quellcode
function add_custom_background( $wp_head_callback = '', $admin_head_callback = '', $admin_preview_callback = '' ) { _deprecated_function( __FUNCTION__, '3.4.0', '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 ); }