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:
定义位置
  • wp-includes/general-template.php
    , line 38
引入
5.5.0
弃用

Fires before the header template file is loaded.

do_action( 'get_header', $name, $args );