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