WordPress at a glance
function is not described

get_current_site() WP 3.0.0

Get the current network.

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

  • See: wpmu_current_site()
  • Global. WP_Network. $current_site

No Hooks.

Return

WP_Network.

Usage

get_current_site();

Code of get current site: wp-includes/ms-functions.php VER 5.0.3

<?php
function get_current_site() {
	global $current_site;
	return $current_site;
}