add_custom_image_header( callable $wp_head_callback, callable $admin_head_callback, callable $admin_preview_callback =  )

This function has been deprecated. Use add_theme_support() instead.

Add callbacks for image header display.

Description

See also

Parameters

$wp_head_callbackcallablerequired
Call on the 'wp_head' action.
$admin_head_callbackcallablerequired
Call on custom header administration screen.
$admin_preview_callbackcallableoptional
Output a custom header image div on the custom header administration screen. Optional.

Default:''

Source

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 );
}

Changelog

VersionDescription
3.4.0Use add_theme_support()
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.