Automattic\WooCommerce\Admin\API\Reports\Revenue\Stats

Controller::get_datastore_dataprotectedWC 1.0

Get data from RevenueQuery.

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

Хуков нет.

Возвращает

Разное. Results from the data store.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_datastore_data( $query_args );
$query_args(массив)
Query arguments.
По умолчанию: array()

Код Controller::get_datastore_data() WC 10.8.1

protected function get_datastore_data( $query_args = array() ) {
	$query = new RevenueQuery( $query_args );
	return $query->get_data();
}