is_main_network
is_main_network ( $network_id = null )
Parameters:- (int) network_id Optional. Network ID to test. Defaults to current network.
Returns:- (bool) True if $network_id is the main network, or if not running Multisite.
Defined at: - Introduced in WordPress: 3.7.0
- Deprecated in WordPress: —
Description
Determines whether a network is the main network of the Multisite installation.