wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_current_site › WordPress Function

Da
Deprecaton/a
get_current_site ( Nessun parametro )
Vedi:
Ritorna:
  • (WP_Network) The current network.
Definito a:
Codex:
ChangeLog:
  • MU

Gets the current network.

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


Sorgenti

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