W3cubDocs

/WordPress

Requests_Cookie_Jar::offsetGet( string $key )

Get the value for the item

Parameters

$key

(string) (Required) Item key

Return

(string) Item value

Source

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

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

		return $this->cookies[$key];
	}

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