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



get_current_site › WordPress Function

Depuis
Dépréciéen/a
get_current_site ( Pas de paramètres )
Voir:
Retourne:
  • (WP_Network) The current network.
Défini(e) dans:
Codex:
Changelog:
  • MU

Gets the current network.

Returns an object containing the 'id', 'domain', 'path', and 'site_name' properties of the network being viewed.


Source

function get_current_site() {
	global $current_site;
	return $current_site;
}