is_subdomain_install()

Whether a subdomain configuration is enabled.


Description Description


Return Return

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


Top ↑

Source Source

File: wp-includes/ms-load.php

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

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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