filtrod 2.9.0
http_response
Opis — z kodu źródłowego
Filters a successful HTTP API response immediately before the response is returned.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$response | array | HTTP response. |
$parsed_args | array | HTTP request arguments. |
$url | string | The request URL. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'http_response', '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( 'http_response', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii