Uses
Uses | Description |
---|---|
wp-includes/Requests/Exception.php: Requests_Exception::__construct() | Create a new exception |
Constructor
(array|null) (Optional) Array of user and password. Must have exactly two elements
Default value: null
File: wp-includes/Requests/Auth/Basic.php
public function __construct($args = null) { if (is_array($args)) { if (count($args) !== 2) { throw new Requests_Exception('Invalid number of arguments', 'authbasicbadargs'); } list($this->user, $this->pass) = $args; } }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_auth_basic/__construct