W3cubDocs

/WordPress

Requests_Cookie_Jar::offsetSet( string $key, string $value )

Set the given item

Parameters

$key

(string) (Required) Item name

$value

(string) (Required) Item value

Source

File: wp-includes/Requests/Cookie/Jar.php

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

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

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_cookie_jar/offsetset