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:

Description

Gets the main site ID.

Related Functions

get_main_network_id, is_main_site, get_cat_id, get_the_id, get_site

Top Google Results

User discussions

wpseek mobile