is_subdomain_install

Advertisement

Summery Summery

Whether a subdomain configuration is enabled.

Syntax Syntax

is_subdomain_install()

Return Return

(bool) True if subdomain configuration is enabled, false otherwise.

Source Source

File: wp-includes/ms-load.php

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply