GC_Customize_Setting::is_current_blog_previewed()
最后更新于:2021-11-27 08:37:14
GC_Customize_Setting::is_current_blog_previewed()响应 true if the current site is not the same as the previewed site.
响应
(bool) If preview() has been called.
源文件
文件: gc-includes/class-gc-customize-setting.php
public function is_current_blog_previewed() {
if ( ! isset( $this->_previewed_blog_id ) ) {
return false;
}
return ( get_current_blog_id() === $this->_previewed_blog_id );
}