WP_HTTP_Proxy::is_enabled
Whether proxy connection should be used.
Constants which control this behavior:
WP_PROXY_HOSTWP_PROXY_PORT
Method of the class: WP_HTTP_Proxy{}
No Hooks.
Returns
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 7.0
public function is_enabled() {
return defined( 'WP_PROXY_HOST' ) && defined( 'WP_PROXY_PORT' );
}