WP HOOKS
akcjaod 2.8.0

http_api_debug

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

Opis — z kodu źródłowego

Fires after an HTTP API response is received and before the response is returned.

Parametry

ParametrTypOpis
$responsearray | \WP_ErrorHTTP response or WP_Error object.
$contextstringContext under which the hook is fired.
$classstringHTTP transport used.
$parsed_argsarrayHTTP request arguments.
$urlstringThe 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
}

Popularne w tej kategorii