add_custom_image_header()
Deprecated from version 3.4.0. It is no longer supported and can be removed in future releases. Use add_theme_support() instead.
Add callbacks for image header display.
No Hooks.
Return
null
. Nothing (null).
Usage
add_custom_image_header( $wp_head_callback, $admin_head_callback, $admin_preview_callback );
- $wp_head_callback(callable) (required)
- Call on the wp_head action.
- $admin_head_callback(callable) (required)
- Call on custom header administration screen.
- $admin_preview_callback(callable)
- Output a custom header image div on the custom header administration screen. Optional.
Default: ''
Notes
- See: add_theme_support()
Changelog
Since 2.1.0 | Introduced. |
Deprecated since 3.4.0 | Use add_theme_support() |
add_custom_image_header() add custom image header code WP 6.7.1
function add_custom_image_header( $wp_head_callback, $admin_head_callback, $admin_preview_callback = '' ) { _deprecated_function( __FUNCTION__, '3.4.0', 'add_theme_support( \'custom-header\', $args )' ); $args = array( 'wp-head-callback' => $wp_head_callback, 'admin-head-callback' => $admin_head_callback, ); if ( $admin_preview_callback ) $args['admin-preview-callback'] = $admin_preview_callback; return add_theme_support( 'custom-header', $args ); }