WP_Object_Cache::__isset() WordPress Method
The WP_Object_Cache::__isset() method checks whether a given key exists in the cache. If the key exists, the method returns true. Otherwise, the method returns false.
WP_Object_Cache::__isset( string $name ) #
Makes private properties checkable for backward compatibility.
Contents
Parameters
- $name
(string)(Required)Property to check if set.
Return
(bool) Whether the property is set.
Source
File: wp-includes/class-wp-object-cache.php
public function __isset( $name ) { return isset( $this->$name ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |