WC_Object_Data_Store_Interface::add_meta()publicWC 1.0

Add new piece of meta.

Method of the class: WC_Object_Data_Store_Interface{}

No Hooks.

Return

Int. meta ID

Usage

$WC_Object_Data_Store_Interface = new WC_Object_Data_Store_Interface();
$WC_Object_Data_Store_Interface->add_meta( $data, $meta );
$data(WC_Data) (required) (passed by reference — &)
Data object.
$meta(object) (required)
Meta object (containing ->key and ->value).

WC_Object_Data_Store_Interface::add_meta() code WC 9.4.2

public function add_meta( &$data, $meta );