WP_CLI
Runner::is_multisite()
Whether or not this WordPress installation is multisite.
For use after wp-config.php has loaded, but before the rest of WordPress is loaded.
Method of the class: Runner{}
No Hooks.
Return
null
. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->is_multisite();
Runner::is_multisite() Runner::is multisite code WP-CLI 2.8.0-alpha
private function is_multisite() { if ( defined( 'MULTISITE' ) ) { return MULTISITE; } if ( defined( 'SUBDOMAIN_INSTALL' ) || defined( 'VHOST' ) || defined( 'SUNRISE' ) ) { return true; } return false; }