Automattic\WooCommerce\Admin\API\Reports\Revenue\Stats
Controller::get_datastore_data
Get data from RevenueQuery.
Method of the class: Controller{}
No Hooks.
Returns
Mixed. Results from the data store.
Usage
// protected - for code of main (parent) or child class $result = $this->get_datastore_data( $query_args );
- $query_args(array)
- Query arguments.
Default:array()
Controller::get_datastore_data() Controller::get datastore data code WC 10.8.1
protected function get_datastore_data( $query_args = array() ) {
$query = new RevenueQuery( $query_args );
return $query->get_data();
}