A WordPress-centric search engine for devs and theme authors



is_multisite ›

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

If Multisite is enabled.



Source

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

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

	return false;
}