WordPress at Your Fingertips
function is not described

Requests_Cookie_Jar::offsetGet() public WP 1.0

Get the value for the item

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

No Hooks.


String|null. Item value (null if offsetExists is false)


$Requests_Cookie_Jar = new Requests_Cookie_Jar();
$Requests_Cookie_Jar->offsetGet( $key );
$key(string) (required)
Item key

Code of Requests_Cookie_Jar::offsetGet() WP 5.8

public function offsetGet($key) {
	if (!isset($this->cookies[$key])) {
		return null;

	return $this->cookies[$key];