pre_http_send_through_proxy
apply_filters( ‘pre_http_send_through_proxy’, bool|null $override , string $uri , array $check , array $home )
过滤器::过滤是否通过代理抢占发送请求。
Filter Hook: Filters whether to preempt sending the request through the proxy.
说明(Description)
返回false将绕过代理;返回true将通过代理发送请求。返回空值将绕过筛选器。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$override | (bool | null) | 是否重写请求结果。默认为空。 |
$uri | (string) | 要检查的URL。 |
$check | (array) | 分析请求URI的关联数组结果。 |
$home | (array) | 分析网站URL的关联数组结果。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.5.0 | wp-includes/class-wp-http-proxy.php:196 | 1 | 0 |
pre_http_send_through_proxy 为WP2原创文章,链接:https://www.wp2.cn/hook/pre_http_send_through_proxy/