WP_Customize_Widgets::is_panel_active()
Determines whether the widgets panel is active, based on whether there are sidebars registered.
Description Description
See also See also
- WP_Customize_Panel::$active_callback
Return Return
(bool) Active.
Source Source
File: wp-includes/class-wp-customize-widgets.php
public function is_panel_active() { global $wp_registered_sidebars; return ! empty( $wp_registered_sidebars ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |