常用函数-add_custom_image_header()

0条评论

常用函数-add_custom_image_header()

说明

为图片页面显示添加回调。

回调参数$header_callback需要为'wp_head'动作显示内容。将回调参数 $admin_header_callback添加到Custom_Image_Header类中,将添加后的结果加入'admin_menu'动作

用法

<?php add_custom_image_header( $header_callback, $admin_header_callback ) ?>

参数

$header_callback

(回调)(必需)调用'wp_head'动作

默认值:None

$admin_header_callback

(回调)(必需)调用administration panels

默认值:None

返回的值

(空)

该函数不返回任何值

示例

注释

修改记录

自2.1.0版本起

源文件

add_custom_image_header()位于 wp-includes/theme.php中。

相关资源

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.