WP_Object_Cache::__construct()
Sets up object properties; PHP 5 style constructor.
Method of the class: WP_Object_Cache{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_Object_Cache = new WP_Object_Cache(); $WP_Object_Cache->__construct();
Changelog
Since 2.0.8 | Introduced. |
WP_Object_Cache::__construct() WP Object Cache:: construct code WP 6.6.1
public function __construct() { $this->multisite = is_multisite(); $this->blog_prefix = $this->multisite ? get_current_blog_id() . ':' : ''; }