Requests_Cookie_Jar::offsetGet() WordPress Method
The Request_Cookie_Jar::offsetGet() method is used to get a cookie from a cookie jar by its name. If no cookie with the given name exists, NULL is returned.
Requests_Cookie_Jar::offsetGet( string $key ) #
Get the value for the item
Contents
Parameters
- $key
(string)(Required)Item key
Return
(string|null) Item value (null if offsetExists is false)
Source
File: wp-includes/Requests/Cookie/Jar.php
public function offsetGet($key) { if (!isset($this->cookies[$key])) { return null; } return $this->cookies[$key]; }
Expand full source codeCollapse full source codeView on TracView on GitHub