过滤是否抢占通过代理服务器发送请求。
原型
apply_filters( 'pre_http_send_through_proxy', null $override, string $uri, array $check, array $home )
描述
返回false将绕过代理;返回true将通过代理发送请求。返回null会绕过过滤器。
参数
$override
(null)
是否覆盖请求结果。默认为null。
$uri
(string)
要检查的网址。
$check
(array)
解析URI的关联数组结果。
$home
(array)
解析站点URL的关联数组结果。
源文件
路径:wp-includes/class-wp-http-proxy.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/pre_http_send_through_proxy/