WordPress at a glance
function is not described

WP_HTTP_Proxy::port() public WP 2.8.0

Retrieve the port for the proxy server.

{} It's a method of the class: WP_HTTP_Proxy{}

No Hooks.

Return

String. Nothing.

Usage

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

Changelog

Since 2.8.0 Introduced.

Code of WP_HTTP_Proxy::port() WP 5.7.2

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

	return '';
}