WP HOOKS
akcjaod 2.1.0

get_header

Args 2Plik wp-includes/general-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires before the header template file is loaded.

Parametry

ParametrTypOpis
$namestring | nullName of the specific header file to use. Null for the default header.
$argsarrayAdditional arguments passed to the header template.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'get_header', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii