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)
Source
File: wp-includes/class-wp-http-proxy.php
public function port() { if ( defined( 'WP_PROXY_PORT' ) ) { return WP_PROXY_PORT; } return ''; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |