GC_Customize_Widgets::is_sidebar_rendered()
最后更新于:2021-11-27 11:14:23
GC_Customize_Widgets::is_sidebar_rendered( string$sidebar_id)Determines if a sidebar is rendered on the page.
参数
- $sidebar_id
-
(string) (Required) Sidebar ID to check.
响应
(bool) Whether the sidebar is rendered.
源文件
文件: gc-includes/class-gc-customize-widgets.php
public function is_sidebar_rendered( $sidebar_id ) {
return ! empty( $this->rendered_sidebars[ $sidebar_id ] );
}