WP_HTTP_Proxy::is_enabled(): bool

In this article

Whether proxy connection should be used.

Description

Constants which control this behavior:

  • WP_PROXY_HOST
  • WP_PROXY_PORT

Return

bool

Source

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

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.