WP HOOKS
akcjaod 6.1.0

wp_after_load_template

Args 3Plik wp-includes/template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires after a template file is loaded.

Parametry

ParametrTypOpis
$_template_filestringThe full path to the template file.
$load_onceboolWhether to require_once or require.
$argsarrayAdditional arguments passed to the template.

Wywołanie

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

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

Popularne w tej kategorii