WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

Init::add_data_stores() public WC 1.0

Adds data stores.

{} It's a method of the class: Init{}

No Hooks.

Return

Array. Nothing.

Usage

$result = Init::add_data_stores( $data_stores );
$data_stores(array) (required)
List of data stores.

Code of Init::add_data_stores() WC 5.3.0

<?php
public static function add_data_stores( $data_stores ) {
	return array_merge(
		$data_stores,
		array(
			'report-revenue-stats'    => 'Automattic\WooCommerce\Admin\API\Reports\Orders\Stats\DataStore',
			'report-orders'           => 'Automattic\WooCommerce\Admin\API\Reports\Orders\DataStore',
			'report-orders-stats'     => 'Automattic\WooCommerce\Admin\API\Reports\Orders\Stats\DataStore',
			'report-products'         => 'Automattic\WooCommerce\Admin\API\Reports\Products\DataStore',
			'report-variations'       => 'Automattic\WooCommerce\Admin\API\Reports\Variations\DataStore',
			'report-products-stats'   => 'Automattic\WooCommerce\Admin\API\Reports\Products\Stats\DataStore',
			'report-variations-stats' => 'Automattic\WooCommerce\Admin\API\Reports\Variations\Stats\DataStore',
			'report-categories'       => 'Automattic\WooCommerce\Admin\API\Reports\Categories\DataStore',
			'report-taxes'            => 'Automattic\WooCommerce\Admin\API\Reports\Taxes\DataStore',
			'report-taxes-stats'      => 'Automattic\WooCommerce\Admin\API\Reports\Taxes\Stats\DataStore',
			'report-coupons'          => 'Automattic\WooCommerce\Admin\API\Reports\Coupons\DataStore',
			'report-coupons-stats'    => 'Automattic\WooCommerce\Admin\API\Reports\Coupons\Stats\DataStore',
			'report-downloads'        => 'Automattic\WooCommerce\Admin\API\Reports\Downloads\DataStore',
			'report-downloads-stats'  => 'Automattic\WooCommerce\Admin\API\Reports\Downloads\Stats\DataStore',
			'admin-note'              => 'Automattic\WooCommerce\Admin\Notes\DataStore',
			'report-customers'        => 'Automattic\WooCommerce\Admin\API\Reports\Customers\DataStore',
			'report-customers-stats'  => 'Automattic\WooCommerce\Admin\API\Reports\Customers\Stats\DataStore',
			'report-stock-stats'      => 'Automattic\WooCommerce\Admin\API\Reports\Stock\Stats\DataStore',
		)
	);
}