函数原型
ms_is_switched(): bool
函数描述
Determines if switch_to_blog() is in effect
是否弃用
未弃用
函数参数
无
函数返回值
bool True if switched, false otherwise.
函数位置
File: wp-includes/ms-blogs.php.
函数源码
function ms_is_switched() {
return ! empty( $GLOBALS['_wp_switched_stack'] );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |

