A WordPress-centric search engine for devs and theme authors



get_current_site ›

SinceMU
Deprecatedn/a
get_current_site ( No parameters )
See:
Returns:
  • (WP_Network)
Defined at:
Codex:

Get 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;
}