Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




add_custom_image_header [ WordPress Function ]

add_custom_image_header ( $wp_head_callback, $admin_head_callback, $admin_preview_callback = '' )
Parameters:
  • (callback) $wp_head_callback Call on 'wp_head' action.
  • (callback) $admin_head_callback Call on custom header administration screen.
  • (callback) $admin_preview_callback Output a custom header image div on the custom header administration screen. Optional.
See:
Defined at:



Add callbacks for image header display.

Source


<?php
function add_custom_image_header$wp_head_callback$admin_head_callback$admin_preview_callback '' ) {
    
_deprecated_function__FUNCTION__'3.4''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 );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics