WpOrg\Requests\Cookie
Jar::offsetGet()
Get the value for the item
Method of the class: Jar{}
No Hooks.
Return
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.6.2
public function offsetGet($offset) { if (!isset($this->cookies[$offset])) { return null; } return $this->cookies[$offset]; }