WpOrg\Requests\Cookie

Jar::__construct()publicWP 1.0

Create a new jar

Method of the class: Jar{}

No Hooks.

Return

null. Nothing (null).

Usage

$Jar = new Jar();
$Jar->__construct( $cookies );
$cookies(array)
Existing cookie values
Default: []

Jar::__construct() code WP 6.6.2

public function __construct($cookies = []) {
	if (is_array($cookies) === false) {
		throw InvalidArgument::create(1, '$cookies', 'array', gettype($cookies));
	}

	$this->cookies = $cookies;
}