get_header

动作钩子
do_action( 'get_header', $name, $args )
参数
  • (string|null) $name Name of the specific header file to use. Null for the default header.
    Required:
  • (array) $args Additional arguments passed to the header template.
    Required:
定义位置
相关勾子
login_headersend_headersget_the_dateget_schedulewp_headers
相关方法
get_headerget_header_imageget_custom_headerget_themelogin_headerget_the_date
引入
5.5.0
弃用
-

get_header: 该函数返回网站页眉的内容。文件header.php用于生成输出。

在加载头模板文件之前触发。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'get_header', $name, $args );
do_action( 'get_header', $name, $args );
do_action( 'get_header', $name, $args );

常见问题

FAQs
查看更多 >
闪电伯伯

(工作日 10:00 - 18:30 为您服务)

2025-11-02 01:19:50

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: