WP_HTTP_Proxy::host() WordPress Method
The WP_HTTP_Proxy::host() function allows you to get or set the proxy host for the HTTP request. This can be useful if you need to connect to a server that is behind a firewall.
WP_HTTP_Proxy::host() #
Retrieve the host for the proxy server.
Return
(string)
Source
File: wp-includes/class-wp-http-proxy.php
public function host() { if ( defined( 'WP_PROXY_HOST' ) ) { return WP_PROXY_HOST; } return ''; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |