get_current_site()
Gets the current network.
Description
Returns an object containing the ‘id’, ‘domain’, ‘path’, and ‘site_name’ properties of the network being viewed.
See also
Return
(WP_Network) The current network.
Source
File: wp-includes/ms-functions.php
function get_current_site() {
global $current_site;
return $current_site;
}
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. MU (3.0.0) |