is_main_network() WP 3.7.0
Determine whether a network is the main network of the Multisite installation.
Хуков нет.
Возвращает
true/false. True if $network_id
is the main network, or if not running Multisite.
Использование
is_main_network( $network_id );
- $network_id(число)
- Network ID to test.
По умолчанию: current network
Список изменений
С версии 3.7.0 | Введена. |