WpOrg\Requests\Cookie

Jar::offsetSet()publicWP 1.0ReturnTypeWillChange

Set the given item

Method of the class: Jar{}

No Hooks.

Return

null. Nothing (null).

Usage

$Jar = new Jar();
$Jar->offsetSet( $offset, $value );
$offset(string) (required)
Item name
$value(string) (required)
Item value

Jar::offsetSet() code WP 6.6.2

public function offsetSet($offset, $value) {
	if ($offset === null) {
		throw new Exception('Object is a dictionary, not a list', 'invalidset');
	}

	$this->cookies[$offset] = $value;
}