Uses
Uses | Description |
---|---|
wp-includes/class-wp-network-query.php: WP_Network_Query::__construct() | Constructor. |
Retrieves a list of networks.
(string|array) (Optional) Array or string of arguments. See WP_Network_Query::parse_query() for information on accepted arguments.
Default value: array()
(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.
File: wp-includes/ms-network.php
function get_networks( $args = array() ) { $query = new WP_Network_Query(); return $query->query( $args ); }
Version | Description |
---|---|
4.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_networks