WordPress at Your Fingertips
function is not described

Requests_Cookie_Jar::offsetSet() public WP 1.0

Set the given item

{} It's a method of the class: Requests_Cookie_Jar{}

No Hooks.

Return

null. Nothing.

Usage

$Requests_Cookie_Jar = new Requests_Cookie_Jar();
$Requests_Cookie_Jar->offsetSet( $key, $value );
$key(string) (required)
Item name
$value(string) (required)
Item value

Code of Requests_Cookie_Jar::offsetSet() WP 5.7.2

<?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;
}