Sets up the WordPress query for retrieving sites.
$querystring|arrayrequired
'fields' is set to 'ids', or the number of sites when 'count' is passed as a query var.public function query( $query ) {
$this->query_vars = wp_parse_args( $query );
return $this->get_sites();
}
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_site_query/query