filtrod 3.6.0
wp_http_accept_encoding
Opis — z kodu źródłowego
Filters the allowed encoding types.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$type | string[] | Array of what encoding types to accept and their priority values. |
$url | string | URL of the HTTP request. |
$args | array | HTTP 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
}
// 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
}