Automattic\WooCommerce\Admin\API\Reports
GenericController::get_datastore_data()
Get data from {$this->rest_base} store, based on the given query vars.
Method of the class: GenericController{}
No Hooks.
Return
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()
GenericController::get_datastore_data() GenericController::get datastore data code WC 9.6.1
protected function get_datastore_data( $query_args = array() ) { $data_store = \WC_Data_Store::load( $this->rest_base ); return $data_store->get_data( $query_args ); }