WpOrg\Requests\Cookie

Jar::offsetSetpublicWP 1.0ReturnTypeWillChange

Set the given item

Method of the class: Jar{}

No Hooks.

Returns

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 7.0

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

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