WP HOOKS
filtrod 3.5.0

do_parse_request

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

Opis — z kodu źródłowego

Filters whether to parse the request.

Parametry

ParametrTypOpis
$boolboolWhether or not to parse the request. Default true.
$wp\WPCurrent WordPress environment instance.
$extra_query_varsarray | stringExtra passed query variables.

Wywołanie

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

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

Popularne w tej kategorii