WP_HTTP_Proxy::is_enabled()
Whether proxy connection should be used.
Constants which control this behavior:
- WP_PROXY_HOST
- WP_PROXY_PORT
Method of the class: WP_HTTP_Proxy{}
No Hooks.
Return
true|false
.
Usage
$WP_HTTP_Proxy = new WP_HTTP_Proxy(); $WP_HTTP_Proxy->is_enabled();
Changelog
Since 2.8.0 | Introduced. |
WP_HTTP_Proxy::is_enabled() WP HTTP Proxy::is enabled code WP 6.5.2
public function is_enabled() { return defined( 'WP_PROXY_HOST' ) && defined( 'WP_PROXY_PORT' ); }