WP_Object_Cache::__unset() WordPress Method
The WP_Object_Cache::__unset() method is used to remove an object from the cache. This is typically done when the object is no longer needed or when the cache needs to be cleared.
WP_Object_Cache::__unset( string $name ) #
Makes private properties un-settable for backward compatibility.
Contents
Parameters
- $name
(string)(Required)Property to unset.
Source
File: wp-includes/class-wp-object-cache.php
public function __unset( $name ) { unset( $this->$name ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |