Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::add_meta()publicWC 1.0

Add new piece of meta.

Метод класса: OrdersTableDataStore{}

No Hooks.

Return

Int. meta ID

Usage

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

Code of OrdersTableDataStore::add_meta() WC 7.1.0

public function add_meta( &$object, $meta ) {
	return $this->data_store_meta->add_meta( $object, $meta );
}