WP_HTTP_Proxy::port() WordPress Method

The WP_HTTP_Proxy::port() function is used to get or set the port number for a proxy server. This function can be used to set the port number for a proxy server when making HTTP requests.

WP_HTTP_Proxy::port() #

Retrieve the port for the proxy server.


Return

(string)


Top ↑

Source

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

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

		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.