apply_filters( ‘pre_http_send_through_proxy’, bool|null $override, string $uri, array $check, array $home )

In this article

Filters whether to preempt sending the request through the proxy.

Description

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

Parameters

$overridebool|null
Whether to send the request through the proxy. Default null.
$uristring
URL of the request.
$checkarray
Associative array result of parsing the request URL with parse_url().
$homearray
Associative array result of parsing the site URL with parse_url().

Source

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

Changelog

VersionDescription
3.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.