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

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

Related Functions

get_main_network_id, is_main_query, wp_is_large_network, install_network, is_main_blog

Top Google Results

User discussions

wpseek mobile