wpseek.com
A WordPress-centric search engine for devs and theme authors



get_current_site › WordPress Function

Since
Deprecatedn/a
get_current_site ( No parameters )
See:
Returns:
  • (WP_Network) The current network.
Defined at:
Codex:
Change Log:
  • 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;
}