do_action_ref_array( 'http_api_curl', resource $handle, array $parsed_args, string $url )
- Since
- 2.8.0
Fires before the cURL request is executed.
Description
Cookies are not currently handled by the HTTP API. This action allows plugins to handle cookies themselves.
Parameters
$handleresource- The cURL handle returned by curl_init() (passed by reference).
$parsed_argsarray- The HTTP request arguments.
$urlstring- The request URL.
Fired at · 2
wp-includes/class-wp-http-curl.php:236WP_Http_Curl::request()wp-includes/class-wp-http-requests-hooks.php:58WP_HTTP_Requests_Hooks::dispatch()
Source
* @since 2.8.0 * * @param resource $handle The cURL handle returned by curl_init() (passed by reference). * @param array $parsed_args The HTTP request arguments. * @param string $url The request URL. */ do_action_ref_array( 'http_api_curl', array( &$handle, $parsed_args, $url ) ); // We don't need to return the body, so don't. Just execute request and return. if ( ! $parsed_args['blocking'] ) { curl_exec( $handle ); $curl_error = curl_error( $handle );History
Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.