WP_HTTP_Proxy::authentication() WordPress Method
The WP_HTTP_Proxy::authentication() method is used to setup authentication for accessing a proxy server. This method accepts an array of arguments, including the proxy server's address, username, and password.
WP_HTTP_Proxy::authentication() #
Retrieve authentication string for proxy authentication.
Return
(string)
Source
File: wp-includes/class-wp-http-proxy.php
public function authentication() { return $this->username() . ':' . $this->password(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |