WP_Object_Cache::__set()publicWP 4.0.0

Makes private properties settable for backward compatibility.

Method of the class: WP_Object_Cache{}

No Hooks.

Return

Mixed. Newly-set property.

Usage

$WP_Object_Cache = new WP_Object_Cache();
$WP_Object_Cache->__set( $name, $value );
$name(string) (required)
Property to set.
$value(mixed) (required)
Property value.

Changelog

Since 4.0.0 Introduced.

WP_Object_Cache::__set() code WP 6.1.1

public function __set( $name, $value ) {
	return $this->$name = $value;
}