W3cubDocs

/WordPress

WP_HTTP_Proxy::is_enabled()

Whether proxy connection should be used.

Return

(bool)

Source

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

public function is_enabled() {
		return defined( 'WP_PROXY_HOST' ) && defined( 'WP_PROXY_PORT' );
	}

Changelog

Version Description
2.8.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_http_proxy/is_enabled