Title: pre_http_send_through_proxy
Published: April 25, 2014
Last modified: April 28, 2025

---

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

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/pre_http_send_through_proxy/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/pre_http_send_through_proxy/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/pre_http_send_through_proxy/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/pre_http_send_through_proxy/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/pre_http_send_through_proxy/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/pre_http_send_through_proxy/?output_format=md#wp--skip-link--target)

Filters whether to preempt sending the request through the proxy.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/pre_http_send_through_proxy/?output_format=md#description)󠁿

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/pre_http_send_through_proxy/?output_format=md#parameters)󠁿

 `$override`bool|null

Whether to send the request through the proxy. Default null.

`$uri`string

URL of the request.

`$check`array

Associative array result of parsing the request URL with `parse_url()`.

`$home`array

Associative array result of parsing the site URL with `parse_url()`.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/pre_http_send_through_proxy/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-http-proxy.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-http-proxy.php#L194)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-http-proxy.php#L194-L194)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/pre_http_send_through_proxy/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_HTTP_Proxy::send_through_proxy()](https://developer.wordpress.org/reference/classes/wp_http_proxy/send_through_proxy/)`wp-includes/class-wp-http-proxy.php` |

Determines whether the request should be sent through a proxy.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/pre_http_send_through_proxy/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.5.0](https://developer.wordpress.org/reference/since/3.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fpre_http_send_through_proxy%2F)
before being able to contribute a note or feedback.