Automattic\WooCommerce\Internal\DataStores\StockNotifications

StockNotificationsDataStore::filter_raw_meta_data │ public │ WC 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.

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

Хуков нет.

Возвращает

array.

Использование

$StockNotificationsDataStore = new StockNotificationsDataStore();
$StockNotificationsDataStore->filter_raw_meta_data( $notification, $raw_meta_data ): array;
$notification(Notification) (обязательный) (передается по ссылке — &)
The data object to filter.
$raw_meta_data(массив) (обязательный)
The raw meta data to filter.

Код StockNotificationsDataStore::filter_raw_meta_data() WC 11.2.2

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