wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



is_multisite › WordPress Function

Da3.0.0
Deprecaton/a
is_multisite ( Nessun parametro )
Ritorna:
  • (bool) True if Multisite is enabled, false otherwise.
Definito a:
Codex:

Determines whether Multisite is enabled.



Sorgenti

function is_multisite() {
	if ( defined( 'MULTISITE' ) ) {
		return MULTISITE;
	}

	if ( defined( 'SUBDOMAIN_INSTALL' ) || defined( 'VHOST' ) || defined( 'SUNRISE' ) ) {
		return true;
	}

	return false;
}