Automattic\WooCommerce\Internal\DataStores\StockNotifications

StockNotificationsDataStore::filter_raw_meta_datapublicWC 1.0

Filter the raw meta data.

This is required due to the use of the WC_Data::read_meta_data() method. It's a post-specific method that used to filter internal meta data. For custom tables, technically there is no internal meta data, so this method is a no-op.

Method of the class: StockNotificationsDataStore{}

No Hooks.

Returns

Array.

Usage

$StockNotificationsDataStore = new StockNotificationsDataStore();
$StockNotificationsDataStore->filter_raw_meta_data( $notification, $raw_meta_data ): array;
$notification(Notification) (required) (passed by reference — &)
The data object to filter.
$raw_meta_data(array) (required)
The raw meta data to filter.

StockNotificationsDataStore::filter_raw_meta_data() code WC 10.3.6

public function filter_raw_meta_data( &$notification, $raw_meta_data ): array {
	return $raw_meta_data;
}