is_subdomain_install(): bool

In this article

Whether a subdomain configuration is enabled.

Return

bool True if subdomain configuration is enabled, false otherwise.

Source

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

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

Changelog

VersionDescription
3.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.