WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin\API\Reports\Customers

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 6.1.0

protected function initialize_queries() {
	$this->clear_all_clauses();
	$table_name     = self::get_db_table_name();
	$this->subquery = new SqlQuery( $this->context . '_subquery' );
	$this->subquery->add_sql_clause( 'from', $table_name );
	$this->subquery->add_sql_clause( 'select', "{$table_name}.customer_id" );
	$this->subquery->add_sql_clause( 'group_by', "{$table_name}.customer_id" );
}