WordPress at Your Fingertips

is_multisite() WP 1.0

If Multisite is enabled.

Used By: is_main_site()
1 time — 0.000009 sec (speed of light) | 50000 times — 0.01 sec (speed of light) | PHP 7.0.8, WP 4.6.1

No Hooks.

Return

true|false. True if Multisite is enabled, false otherwise.

Usage

is_multisite();

Changelog

Since 3.0.0 Introduced.

Code of is_multisite() WP 5.8.1

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

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

	return false;
}

Conditional tags (all)

Multisite

No comments
    Log In