wpseek.com
WordPress开发者和主题制作者的搜索引擎



pre_http_send_through_proxy › WordPress过滤钩子

Since3.5.0
已弃用n/a
apply_filters( 'pre_http_send_through_proxy', null, $uri, $check, $home )
参数: (4)
  • (bool|null) $override Whether to send the request through the proxy. Default null.
    Required: Yes
  • (string) $uri URL of the request.
    Required: Yes
  • (array) $check Associative array result of parsing the request URL with `parse_url()`.
    Required: Yes
  • (array) $home Associative array result of parsing the site URL with `parse_url()`.
    Required: Yes
定义在:
文档:

Filters whether to preempt sending the request through the proxy.

Returning false will bypass the proxy; returning true will send the request through the proxy. Returning null bypasses the filter.





源码

$result = apply_filters( 'pre_http_send_through_proxy', null, $uri, $check, $home );