wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_networks › WordPress Function

Depuis4.6.0
Dépréciéen/a
get_networks ( $args = array() )
Paramètres:
  • (string|array) $args Optional. Array or string of arguments. See WP_Network_Query::parse_query() for information on accepted arguments. Default empty array.
    Requis: Non
    Défaut: array()
Retourne:
  • (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.
Défini(e) dans:
Codex:

Retrieves a list of networks.



Source

function get_networks( $args = array() ) {
	$query = new WP_Network_Query();

	return $query->query( $args );
}