filtrod 3.5.0
do_parse_request
Opis — z kodu źródłowego
Filters whether to parse the request.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$bool | bool | Whether or not to parse the request. Default true. |
$wp | \WP | Current WordPress environment instance. |
$extra_query_vars | array | string | Extra 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
}
// 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