W3cubDocs

/WordPress

Requests_Cookie_Jar::offsetExists( string $key )

Check if the given item exists

Parameters

$key

(string) (Required) Item key

Return

(boolean) Does the item exist?

Source

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

public function offsetExists($key) {
		return isset($this->cookies[$key]);
	}

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