is_subdomain_install()WP 3.0.0

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() WP 6.5.2

function is_subdomain_install() {
	if ( defined( 'SUBDOMAIN_INSTALL' ) ) {
		return SUBDOMAIN_INSTALL;
	}

	return ( defined( 'VHOST' ) && 'yes' === VHOST );
}