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



ms_is_switched ›

Since3.5.0
已弃用n/a
ms_is_switched ( 没有参数 )
返回:
  • (bool) True if switched, false otherwise.
定义在:
文档:

Determines if switch_to_blog() is in effect



源码

function ms_is_switched() {
	return ! empty( $GLOBALS['_wp_switched_stack'] );
}