akcjareferencjaod 2.8.0
http_api_curl
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
| Parametr | Typ | Opis |
|---|---|---|
$handle | resource | The cURL handle returned by curl_init() (passed by reference). |
$parsed_args | array | The HTTP request arguments. |
$url | string | The request URL. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'http_api_curl', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'http_api_curl', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}