WP HOOKS
filtrod 3.6.0

wp_http_accept_encoding

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

Opis — z kodu źródłowego

Filters the allowed encoding types.

Parametry

ParametrTypOpis
$typestring[]Array of what encoding types to accept and their priority values.
$urlstringURL of the HTTP request.
$argsarrayHTTP request arguments.

Wywołanie

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

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