WordPress at a glance
function is not described

WP_Site_Query::query() public WP 4.6.0

Sets up the WordPress query for retrieving sites.

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

No Hooks.

Return

Array|Int. List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids', or the number of sites when 'count' is passed as a query var.

Usage

$WP_Site_Query = new WP_Site_Query();
$WP_Site_Query->query( $query );
$query(string|array) (required)
Array or URL query string of parameters.

Changelog

Since 4.6.0 Introduced.

Code of WP_Site_Query::query() WP 5.7

<?php
public function query( $query ) {
	$this->query_vars = wp_parse_args( $query );

	return $this->get_sites();
}