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:

Description

Determine whether a network is the main network of the Multisite installation.

Related Functions

get_main_network_id, is_main_query, is_main_site, is_main_blog, install_network

Top Google Results

User discussions

wpseek mobile