http_response
apply_filters( ‘http_response’, array $response , array $parsed_args , string $url )
过滤器::在返回响应之前过滤HTTP API响应。
Filter Hook: Filters the HTTP API response immediately before the response is returned.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$response | (array) | HTTP响应。 |
$parsed_args | (array) | HTTP请求参数。 |
$url | (string) | 请求URL。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.9.0 | wp-includes/class-http.php:446 | 2 | 0 |
http_response 为WP2原创文章,链接:https://www.wp2.cn/hook/http_response/