WP HOOKS
akcjareferencjaod 2.8.0

http_api_curl

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

Opis — z kodu źródłowego

Fires before the cURL request is executed.

Cookies are not currently handled by the HTTP API. This action allows plugins to handle cookies themselves.

Parametry

ParametrTypOpis
$handleresourceThe cURL handle returned by curl_init() (passed by reference).
$parsed_argsarrayThe HTTP request arguments.
$urlstringThe request URL.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'http_api_curl', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}