函数原型
is_subdomain_install(): bool
函数描述
Whether a subdomain configuration is enabled.
是否弃用
未弃用
函数参数
无
函数返回值
bool True if subdomain configuration is enabled, false otherwise.
函数位置
File: wp-includes/ms-load.php.
函数源码
function is_subdomain_install() {
if ( defined( 'SUBDOMAIN_INSTALL' ) ) {
return SUBDOMAIN_INSTALL;
}
return ( defined( 'VHOST' ) && 'yes' === VHOST );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |

