Function: get_current_site

get_current_site( )

Get the current network.

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

Returns

WP_Network

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.