Requests_Cookie_Jar::offsetExists() WordPress Method

The offsetExists() method of the Requests_Cookie_Jar class is used to check if a given key exists in the cookie jar.

Requests_Cookie_Jar::offsetExists( string $key ) #

Check if the given item exists


Parameters

$key

(string)(Required)Item key


Top ↑

Return

(boolean) Does the item exist?


Top ↑

Source

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

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.