W3cubDocs

/WordPress

Http::get_auth_string(): string

Get the authentication string (user:pass)

Return

string

Source

public function get_auth_string() {
	return $this->user . ':' . $this->pass;
}

Changelog

Version Description
1.6 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wporg-requests-proxy-http/get_auth_string