WpOrg\Requests\Cookie
Jar::offsetGet
Get the value for the item
Method of the class: Jar{}
No Hooks.
Returns
String|null
. Item value (null if offsetExists is false)
Usage
$Jar = new Jar(); $Jar->offsetGet( $offset );
- $offset(string) (required)
- Item key.
Jar::offsetGet() Jar::offsetGet code WP 6.8.1
public function offsetGet($offset) { if (!isset($this->cookies[$offset])) { return null; } return $this->cookies[$offset]; }