WordPress at Your Fingertips
function is not described

WP_Object_Cache::__set() public WP 4.0.0

Makes private properties settable for backward compatibility.

{} It's a 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.

Code of WP_Object_Cache::__set() WP 5.8.2

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