wpseek.com
WordPress开发者和主题制作者的搜索引擎



is_multisite › WordPress Function

Since3.0.0
已弃用n/a
is_multisite ( 没有参数 )
返回:
  • (bool) True if Multisite is enabled, false otherwise.
定义在:
文档:

Determines whether Multisite is enabled.



源码

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

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

	return false;
}