1. 首页
  2. WordPress 函数手册

add_custom_image_header()

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

为图像标题显示添加回调。
Add callbacks for image header display.

目录锚点:#说明#参数#返回#源码


说明(Description)

另见函数 add_theme_support()


参数(Parameters)

参数 类型 必填 说明
$wp_head_callback (callable) 必需 调用“wp_head”操作。
$admin_head_callback (callable) 必需 在自定义标题管理屏幕上调用。
$admin_preview_callback (callable) 可选 在“自定义页眉管理”屏幕上输出自定义页眉图像div。可选。

返回(Return)

无返回值


源码(Source)

add_custom_image_header() 函数的代码位于 wp-includes/theme.php.
更新版本 源码位置 使用 被使用
3.4.0 wp-includes/deprecated.php:2985 0 2

add_custom_image_header() 为WP2原创文章,链接:https://www.wp2.cn/functions/add_custom_image_header/