
WP-CLI v2 – 通过终端管理WordPress
do_action_ref_array( 'http_api_curl', array( &$parameters[0], $this->request, $this->url )
http_api_curl。这个过滤器钩子允许你修改在WordPress中进行HTTP请求时传递给cURL函数的参数。这个过滤器在使用cURL传输进行HTTP请求时被应用,并允许你修改传递给cURL的参数,如URL、头文件和选项。
此操作记录在wpincludes/class-wp-http-curl.php中。
do_action_ref_array( 'http_api_curl', array( &$parameters[0], $this->request, $this->url ) );