WC_Object_Data_Store_Interface::add_meta()
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() WC Object Data Store Interface::add meta code WC 9.4.2
public function add_meta( &$data, $meta );