Automattic\WooCommerce\Admin\API\Reports\Products\Stats

DataStore::get_data()publicWC 1.0

Returns the report data based on parameters supplied by the user.

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

Хуков нет.

Возвращает

stdClass|WP_Error. Data.

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

$DataStore = new DataStore();
$DataStore->get_data( $query_args );
$query_args(массив) (обязательный)
Query parameters.

Код DataStore::get_data() WC 9.7.1

public function get_data( $query_args ) {
	// Do not include extended info like `ProductsDataStore` does.
	return ReportsDataStore::get_data( $query_args );
}