Automattic\WooCommerce\Admin\API\Reports\Coupons\Stats

Query::get_data()publicWC 1.0

Get product data based on the current query vars.

Method of the class: Query{}

Return

Array.

Usage

$Query = new Query();
$Query->get_data();

Query::get_data() code WC 7.3.0

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 );
}