GC_Customize_Widgets::is_widget_rendered()
最后更新于:2021-11-27 11:20:32
GC_Customize_Widgets::is_widget_rendered( string$widget_id)Determine if a widget is rendered on the page.
参数
- $widget_id
-
(string) (Required) Widget ID to check.
响应
(bool) Whether the widget is rendered.
源文件
文件: gc-includes/class-gc-customize-widgets.php
public function is_widget_rendered( $widget_id ) {
return ! empty( $this->rendered_widgets[ $widget_id ] );
}