Automattic\WooCommerce\Internal\DataStores\StockNotifications
StockNotificationsDataStore::delete_meta
Delete meta.
Method of the class: StockNotificationsDataStore{}
No Hooks.
Returns
true|false.
Usage
$StockNotificationsDataStore = new StockNotificationsDataStore(); $StockNotificationsDataStore->delete_meta( $notification, $meta ): bool;
- $notification(Notification) (required) (passed by reference — &)
- The data object to delete.
- $meta(stdClass) (required)
- The meta object to delete (containing at least ->id).
StockNotificationsDataStore::delete_meta() StockNotificationsDataStore::delete meta code WC 10.3.6
public function delete_meta( &$notification, $meta ): bool {
$delete_meta = $this->data_store_meta->delete_meta( $notification, $meta );
$this->after_meta_change( $notification );
return $delete_meta;
}