pre_http_send_through_proxy WordPress Filter Hook

The pre_http_send_through_proxy hook is called before an HTTP request is sent through a proxy. This hook allows you to modify the HTTP request before it is sent, which can be useful for things like adding authentication headers or changing the request method.

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

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.


Top ↑

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().


Top ↑

Source

File: wp-includes/class-wp-http-proxy.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.