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)


Top ↑

Source

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

	public function host() {
		if ( defined( 'WP_PROXY_HOST' ) ) {
			return WP_PROXY_HOST;
		}

		return '';
	}

Top ↑

Changelog

Changelog
VersionDescription
2.8.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.