WP_HTTP_Proxy::use_authentication(): bool

In this article

Whether authentication should be used.

Description

Constants which control this behavior:

  • WP_PROXY_USERNAME
  • WP_PROXY_PASSWORD

Return

bool

Source

public function use_authentication() {
	return defined( 'WP_PROXY_USERNAME' ) && defined( 'WP_PROXY_PASSWORD' );
}

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

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