WP_HTTP_Proxy::use_authentication
Whether authentication should be used.
Constants which control this behavior:
WP_PROXY_USERNAMEWP_PROXY_PASSWORD
Method of the class: WP_HTTP_Proxy{}
No Hooks.
Returns
true|false.
Usage
$WP_HTTP_Proxy = new WP_HTTP_Proxy(); $WP_HTTP_Proxy->use_authentication();
Changelog
| Since 2.8.0 | Introduced. |
WP_HTTP_Proxy::use_authentication() WP HTTP Proxy::use authentication code WP 6.9.1
public function use_authentication() {
return defined( 'WP_PROXY_USERNAME' ) && defined( 'WP_PROXY_PASSWORD' );
}