get_main_site_id
get_main_site_id ( $network_id = null )
Parameters:- (int) network_id Optional. The ID of the network for which to get the main site. Defaults to the current network.
Returns:- (int) The ID of the main site.
Defined at: - Introduced in WordPress: 4.9.0
- Deprecated in WordPress: —
Description
Gets the main site ID.