Automattic\WooCommerce\Internal\DataStores\StockNotifications

StockNotificationsDataStore::read_metapublicWC 1.0

Read meta.

Method of the class: StockNotificationsDataStore{}

No Hooks.

Returns

Array.

Usage

$StockNotificationsDataStore = new StockNotificationsDataStore();
$StockNotificationsDataStore->read_meta( $notification ): array;
$notification(Notification) (required) (passed by reference — &)
The data object to read.

StockNotificationsDataStore::read_meta() code WC 10.3.6

public function read_meta( &$notification ): array {
	$raw_meta_data = $this->data_store_meta->read_meta( $notification );
	return $this->filter_raw_meta_data( $notification, $raw_meta_data );
}