WP_Object_Cache::__unset()publicWP 4.0.0

Makes private properties un-settable for backward compatibility.

Method of the class: WP_Object_Cache{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Object_Cache = new WP_Object_Cache();
$WP_Object_Cache->__unset( $name );
$name(string) (required)
Property to unset.

Changelog

Since 4.0.0 Introduced.

WP_Object_Cache::__unset() code WP 6.6.2

public function __unset( $name ) {
	unset( $this->$name );
}