wpseek.com
A WordPress-centric search engine for devs and theme authors



is_multisite › WordPress Function

Since3.0.0
Deprecatedn/a
is_multisite ( No parameters )
Returns:
  • (bool) True if Multisite is enabled, false otherwise.
Defined at:
Codex:

Determines whether Multisite is enabled.



Source

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

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

	return false;
}