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