is_subdomain_install()
Whether a subdomain configuration is enabled.
Хуков нет.
Возвращает
bool. True if subdomain configuration is enabled, false otherwise.
Использование
is_subdomain_install();
Список изменений
| С версии 3.0.0 | Введена. |
Код is_subdomain_install() is subdomain install WP 7.1.3
function is_subdomain_install() {
if ( defined( 'SUBDOMAIN_INSTALL' ) ) {
return SUBDOMAIN_INSTALL;
}
return ( defined( 'VHOST' ) && 'yes' === VHOST );
}