WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports\Categories

DataStore::initialize_queries() protected WC 1.0

Initialize query objects.

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

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->initialize_queries();

Code of DataStore::initialize_queries() WC 5.3.0

<?php
protected function initialize_queries() {
	global $wpdb;
	$this->subquery = new SqlQuery( $this->context . '_subquery' );
	$this->subquery->add_sql_clause( 'select', "{$wpdb->wc_category_lookup}.category_tree_id as category_id," );
	$this->subquery->add_sql_clause( 'from', self::get_db_table_name() );
	$this->subquery->add_sql_clause( 'group_by', "{$wpdb->wc_category_lookup}.category_tree_id" );
}