WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports\Categories

Query::get_data() public WC 1.0

Get categories data based on the current query vars.

{} It's a method of the class: Query{}

Return

Array. Nothing.

Usage

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

Code of Query::get_data() WC 5.3.0

<?php
public function get_data() {
	$args    = apply_filters( 'woocommerce_analytics_categories_query_args', $this->get_query_vars() );
	$results = \WC_Data_Store::load( self::REPORT_NAME )->get_data( $args );
	return apply_filters( 'woocommerce_analytics_categories_select_query', $results, $args );
}