Automattic\WooCommerce\Internal\StockNotifications

StockNotifications::register_data_storespublicWC 1.0

Register the data stores.

Method of the class: StockNotifications{}

No Hooks.

Returns

Array.

Usage

$StockNotifications = new StockNotifications();
$StockNotifications->register_data_stores( $data_stores );
$data_stores(array) (required)
Data stores.

StockNotifications::register_data_stores() code WC 10.3.6

public function register_data_stores( $data_stores ) {
	if ( ! is_array( $data_stores ) ) {
		return $data_stores;
	}

	$data_stores['stock_notification'] = wc_get_container()->get( StockNotificationsDataStore::class );
	return $data_stores;
}