is_multisite()

If Multisite is enabled.


Return Return

(bool) True if Multisite is enabled, false otherwise.


Top ↑

More Information More Information

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


Top ↑

Source Source

File: wp-includes/load.php

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

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

	return false;
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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