wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



allow_subdomain_install › WordPress Function

Desde3.0.0
Obsoleton/a
allow_subdomain_install ( Sem parâmetros )
Retorna:
  • (bool) Whether subdomain installation is allowed
Definido em:
Codex:

Allow subdomain installation



Fonte

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;
}