WP HOOKS
filtrod 2.7.0

http_request_version

Args 2Plik wp-includes/class-wp-http.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the version of the HTTP protocol used in a request.

Parametry

ParametrTypOpis
$versionstringVersion of HTTP used. Accepts '1.0' and '1.1'. Default '1.0'.
$urlstringThe 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
}

Popularne w tej kategorii