Retrieves a list of networks.
Parameters
$args
string|arrayoptional- Array or string of arguments. See WP_Network_Query::parse_query() for information on accepted arguments.
Default:
array()
Source
function get_networks( $args = array() ) {
$query = new WP_Network_Query();
return $query->query( $args );
}
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.