2020-05-02 / 2567阅 / 悠然
Determine whether a site is the main site of the current network.
(int)
(Optional)
Site ID to test. Defaults to current site.
Default value: null
(int)
(Optional)
Network ID of the network to check for. Defaults to current network.
Default value: null
(bool) True if $site_id is the main site of the network, or if not running Multisite.