Un motore di ricerca WordPress per sviluppatori e autori di temi



add_custom_image_header ›

Da2.1.0
Deprecato3.4.0
add_custom_image_header ( $wp_head_callback, $admin_head_callback, $admin_preview_callback = '' )
Parametri: (3)
  • (callable) $wp_head_callback Call on the {@see 'wp_head'} action.
    Richiesto:
  • (callable) $admin_head_callback Call on custom header administration screen.
    Richiesto:
  • (callable) $admin_preview_callback Output a custom header image div on the custom header administration screen. Optional.
    Richiesto: No
    Default: (vuoto)
Vedi:
Definito a:
Codex:

Add callbacks for image header display.



Sorgenti

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