wpseek.com
WordPress开发者和主题制作者的搜索引擎
add_custom_image_header is deprecated since version 3.4.0!
Alternative: add_theme_support( 'custom-header', $args )
Alternative: add_theme_support( 'custom-header', $args )
add_custom_image_header › WordPress Function
Since2.1.0
已弃用3.4.0
› add_custom_image_header ( $wp_head_callback, $admin_head_callback, $admin_preview_callback = '' )
| 参数: (3) |
|
| 查看: | |
| 定义在: |
|
| 文档: |
Add callbacks for image header display.
Related Functions: remove_custom_image_header, has_custom_header, get_custom_header, _custom_logo_header_styles, add_custom_background
源码
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 );
}