Automattic\WooCommerce\Internal\DataStores\StockNotifications
StockNotificationsDataStore::update_meta
Update meta.
Метод класса: StockNotificationsDataStore{}
Хуков нет.
Возвращает
bool.
Использование
$StockNotificationsDataStore = new StockNotificationsDataStore(); $StockNotificationsDataStore->update_meta( $notification, $meta ): bool;
- $notification(Notification) (обязательный) (передается по ссылке — &)
- The data object to update.
- $meta(stdClass) (обязательный)
- The meta object to update (containing ->id, ->key and ->value).
Код StockNotificationsDataStore::update_meta() StockNotificationsDataStore::update meta WC 11.2.2
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;
}