WP_HTTP_Proxy::port()publicWP 2.8.0

Retrieve the port 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->port();

Changelog

Since 2.8.0 Introduced.

WP_HTTP_Proxy::port() code WP 6.4.3

public function port() {
	if ( defined( 'WP_PROXY_PORT' ) ) {
		return WP_PROXY_PORT;
	}

	return '';
}