is_multisite(): bool

Determines whether Multisite is enabled.


Return

bool True if Multisite is enabled, false otherwise.


Top ↑

More Information

Usage
if ( is_multisite() ) { echo 'Multisite is enabled'; }

Top ↑

Source

File: wp-includes/load.php. View all references

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

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

	return false;
}


Top ↑

Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.