filtrod 2.7.0
http_request_version
Opis — z kodu źródłowego
Filters the version of the HTTP protocol used in a request.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$version | string | Version of HTTP used. Accepts '1.0' and '1.1'. Default '1.0'. |
$url | string | The request URL. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'http_request_version', '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_version', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii