WordPress at a glance

is_multisite() WP 1.0

If Multisite is enabled.

Is the basis for: is_main_site()
✈ 1 time = 0.000009s = speed of light | 50000 times = 0.01s = 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();

Code of is_multisite: wp-includes/load.php VER 4.9.8

<?php
function is_multisite() {
	if ( defined( 'MULTISITE' ) )
		return MULTISITE;

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

	return false;
}

Related Functions

From tag: Conditional tags (all)

More from category: Multisite

No comments
    Hello, !     Log In . Register