WP_HTTP_Proxy::is_enabled()

Whether proxy connection should be used.


Description

Constants which control this behavior:

  • WP_PROXY_HOST
  • WP_PROXY_PORT

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

Changelog
Version Description
2.8.0 Introduced.