WordPress at Your Fingertips
function is not described

WC_Meta_Data::__set() public WC 1.0

Creates or updates a property in the metadata object.

{} It's a method of the class: WC_Meta_Data{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Meta_Data = new WC_Meta_Data();
$WC_Meta_Data->__set( $key, $value );
$key(string) (required)
Key to set.
$value(mixed) (required)
Value to set.

Code of WC_Meta_Data::__set() WC 5.8.0

public function __set( $key, $value ) {
	$this->current_data[ $key ] = $value;
}