WP_HTTP_Proxy::host()publicWP 2.8.0

Retrieve the host for the proxy server.

Method of the class: WP_HTTP_Proxy{}

No Hooks.

Return

String.

Usage

$WP_HTTP_Proxy = new WP_HTTP_Proxy();
$WP_HTTP_Proxy->host();

Changelog

Since 2.8.0 Introduced.

WP_HTTP_Proxy::host() code WP 6.5.2

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

	return '';
}