Automattic\WooCommerce\Admin\API\Reports\Coupons\Stats
Query{}
API\Reports\Coupons\Stats\Query
Хуки из класса
Использование
$Query = new Query(); // use class methods
Методы
- public get_data()
- public load( 'report-coupons-stats' )
- public apply_filters( 'woocommerce_analytics_coupons_stats_query_args', $this->get_query_vars() )
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line `class Query extends ReportsQuery {`
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line `*/`
- ERROR: no method name found on line `/**`
- public array()
- ERROR: no method name found on line `*/`
- protected get_default_query_vars()
- ERROR: no method name found on line ``
- ERROR: no method name found on line `}`
- ERROR: no method name found on line ``
Код Query{} Query{} WC 7.3.0
class Query extends ReportsQuery { /** * Valid fields for Products report. * * @return array */ protected function get_default_query_vars() { return array(); } /** * Get product data based on the current query vars. * * @return array */ public function get_data() { $args = apply_filters( 'woocommerce_analytics_coupons_stats_query_args', $this->get_query_vars() ); $data_store = \WC_Data_Store::load( 'report-coupons-stats' ); $results = $data_store->get_data( $args ); return apply_filters( 'woocommerce_analytics_coupons_select_query', $results, $args ); } }