WP_Object_Cache::__get() WordPress Method
The WP_Object_Cache::__get() method is used to get a cached object. This method is called when an attempt is made to access an inaccessible property of the WP_Object_Cache class.
WP_Object_Cache::__get( string $name ) #
Makes private properties readable for backward compatibility.
Contents
Parameters
- $name
(string)(Required)Property to get.
Return
(mixed) Property.
Source
File: wp-includes/class-wp-object-cache.php
public function __get( $name ) { return $this->$name; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |