filtrod 2.7.0
http_request_redirection_count
Opis — z kodu źródłowego
Filters the number of redirects allowed during an HTTP request.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$redirect_count | int | Number of redirects allowed. Default 5. |
$url | string | The request URL. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'http_request_redirection_count', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'http_request_redirection_count', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii