http_api_curl
do_action_ref_array( ‘http_api_curl’, resource $handle , array $parsed_args , string $url )
动作钩子::在执行cURL请求之前激发。
Action Hook: Fires before the cURL request is executed.
说明(Description)
Cookies当前不由HTTP API处理。这个动作允许插件自己处理cookies。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$handle | (resource) | cURL_init()返回的cURL句柄(通过引用传递)。 |
$parsed_args | (array) | HTTP请求参数。 |
$url | (string) | 请求URL。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.8.0 | wp-includes/class-wp-http-curl.php:230 | 2 | 0 |
http_api_curl 为WP2原创文章,链接:https://www.wp2.cn/hook/http_api_curl/