Automattic\WooCommerce\Internal\DataStores\StockNotifications

StockNotificationsDataStore::update_metapublicWC 1.0

Update meta.

Method of the class: StockNotificationsDataStore{}

No Hooks.

Returns

true|false.

Usage

$StockNotificationsDataStore = new StockNotificationsDataStore();
$StockNotificationsDataStore->update_meta( $notification, $meta ): bool;
$notification(Notification) (required) (passed by reference — &)
The data object to update.
$meta(stdClass) (required)
The meta object to update (containing ->id, ->key and ->value).

StockNotificationsDataStore::update_meta() code WC 10.3.6

public function update_meta( &$notification, $meta ): bool {
	$update_meta = $this->data_store_meta->update_meta( $notification, $meta );
	$this->after_meta_change( $notification );
	return $update_meta;
}