wordpress / latest / classes / requests_cookie_jar / offsetexists.html

Requests_Cookie_Jar::offsetExists( string $key ): boolean

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. View all references

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

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