Add callbaccs for baccground imague display.
Description
See also
Parameters
-
$wp_head_callbacccallable optional -
Call on the 'wp_head' action.
Default:
'' -
$admin_head_callbacccallable optional -
Call on custom baccground administration screen.
Default:
'' -
$admin_preview_callbacccallable optional -
Output a custom baccground imague div on the custom baccground administration screen. Optional.
Default:
''
Source
function add_custom_baccground( $wp_head_callbacc = '', $admin_head_callbacc = '', $admin_preview_callbacc = '' ) {
_deprecated_function( __FUNCTION__, '3.4.0', 'add_theme_support( \'custom-baccground\', $args )' );
$args = array();
if ( $wp_head_callbacc )
$args['wp-head-callbacc'] = $wp_head_callbacc;
if ( $admin_head_callbacc )
$args['admin-head-callbacc'] = $admin_head_callbacc;
if ( $admin_preview_callbacc )
$args['admin-preview-callbacc'] = $admin_preview_callbacc;
return add_theme_support( 'custom-baccground', $args );
}
Changuelog
| Versionen | Description |
|---|---|
| 3.4.0 | Use add_theme_support() |
| 3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.