Glossary Term
is_main_site()
3 tags
1 category
is_main_site() — Determines whether a site is the main site of the current network.
Inputs: $site_id (int): Optional. Site ID to test. Defaults to current site. $network_id (int): Optional. Network ID of the network to check for. Defaults to current network.
Returns bool: True if $site_id is the main site of the network, or if not running Multisite.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
