Summery Summery
Sets up the WordPress query for retrieving networks.
Syntax Syntax
Parameters Parameters
- $query
-
(Required) Array or URL query string of parameters.
Return Return
(array|int) List of WP_Network objects, a list of network ids when 'fields' is set to 'ids', or the number of networks when 'count' is passed as a query var.
Source Source
File: wp-includes/class-wp-network-query.php
public function query( $query ) {
$this->query_vars = wp_parse_args( $query );
return $this->get_networks();
}
Advertisement
Changelog Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |