WP_HTTP_Proxy::send_through_proxy

SummerySummery

Determines whether the request should be sent through a proxy.

Syntax

WP_HTTP_Proxy::send_through_proxy( string $uri )

DescriptionDescription

We want to keep localhost and the site URL from being sent through the proxy, because some proxies can not handle this. We also have the constant available for defining other hosts that won’t be sent through the proxy.

ParametersParameters

$uri

(string) (Required) URI to check.

ReturnReturn

(bool) True, to send through the proxy and false if, the proxy should not be used.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
2.8.0 Introduced.
Scroll to Top