WordPress at Your Fingertips
function is not described

allow_subdomain_install() WP 3.0.0

Allow subdomain installation

No Hooks.

Return

true|false. Whether subdomain installation is allowed

Usage

allow_subdomain_install();

Changelog

Since 3.0.0 Introduced.

Code of allow_subdomain_install() WP 5.8.2

function allow_subdomain_install() {
	$domain = preg_replace( '|https?://([^/]+)|', '$1', get_option( 'home' ) );
	if ( parse_url( get_option( 'home' ), PHP_URL_PATH ) || 'localhost' === $domain || preg_match( '|^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$|', $domain ) ) {
		return false;
	}

	return true;
}