WP HOOKS
filtrod 2.9.0

http_response

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

Opis — z kodu źródłowego

Filters a successful HTTP API response immediately before the response is returned.

Parametry

ParametrTypOpis
$responsearrayHTTP response.
$parsed_argsarrayHTTP request arguments.
$urlstringThe 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
}

Popularne w tej kategorii