WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about get_header

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/general-template.php do_action 38 /**
* Fires before the header template file is loaded.
*
* @since 2.1.0
* @since 2.8.0 The `$name` parameter was added.
* @since 5.5.0 The `$args` parameter was added.
*
* @param string|null $name Name of the specific header file to use. Null for the default header.
* @param array $args Additional arguments passed to the header template.
*/

Hook Parameters

Parameter Type Name Description
string|null $name Name of the specific header file to use. Null for the default header.
array $args Additional arguments passed to the header template.