WC_Meta_Data::__set()
Creates or updates a property in the metadata object.
Method of the class: WC_Meta_Data{}
No Hooks.
Return
null
. Nothing (null).
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.
WC_Meta_Data::__set() WC Meta Data:: set code WC 9.2.3
public function __set( $key, $value ) { $this->current_data[ $key ] = $value; }