GC_Customize_Widgets::is_panel_active()

最后更新于:2021-11-27 11:11:05

GC_Customize_Widgets::is_panel_active()

Determines whether the widgets panel is active, based on whether there are sidebars registered.

响应

(bool) Active.

源文件

文件: gc-includes/class-gc-customize-widgets.php

	public function is_panel_active() {
		global $gc_registered_sidebars;
		return ! empty( $gc_registered_sidebars );
	}