Core Function
View Source on Trac ↗ get_networks()
get_networks( mixed $args = array() ) Retrieves a list of networks.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (string | array) $args Optional. Array or string of arguments. See WP_Network_Query::parse_query() for information on accepted arguments. Default empty array. Required |
Return 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.
Function Information
Since Version
4.6.0
Source File
wp-includes/ms-network.php
Advertisement