akcjaod 2.8.0
http_api_debug
Opis — z kodu źródłowego
Fires after an HTTP API response is received and before the response is returned.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$response | array | \WP_Error | HTTP response or WP_Error object. |
$context | string | Context under which the hook is fired. |
$class | string | HTTP transport used. |
$parsed_args | array | HTTP request arguments. |
$url | string | The request URL. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'http_api_debug', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'http_api_debug', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}Popularne w tej kategorii