WP_HTTP_Proxy::usernamepublicWP 2.8.0

Retrieve the username for proxy authentication.

Method of the class: WP_HTTP_Proxy{}

No Hooks.

Returns

String.

Usage

$WP_HTTP_Proxy = new WP_HTTP_Proxy();
$WP_HTTP_Proxy->username();

Changelog

Since 2.8.0 Introduced.

WP_HTTP_Proxy::username() code WP 6.8.1

public function username() {
	if ( defined( 'WP_PROXY_USERNAME' ) ) {
		return WP_PROXY_USERNAME;
	}

	return '';
}