Automattic\WooCommerce\Admin\API\Reports\Categories
Controller::get_datastore_data
Get data from 'categories' GenericQuery.
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 11.3.0
protected function get_datastore_data( $query_args = array() ) {
$query = new GenericQuery( $query_args, 'categories' );
return $query->get_data();
}