Automattic\WooCommerce\Admin\API\Reports
GenericController::get_datastore_data
Get data from {$this->rest_base} store, based on the given query vars.
Метод класса: GenericController{}
Хуков нет.
Возвращает
Разное. Results from the data store.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_datastore_data( $query_args );
- $query_args(массив)
- Query arguments.
По умолчанию: array()
Код GenericController::get_datastore_data() GenericController::get datastore data WC 10.3.4
protected function get_datastore_data( $query_args = array() ) {
$data_store = \WC_Data_Store::load( $this->rest_base );
return $data_store->get_data( $query_args );
}