Determines whether the widgets panel is active, based on whether there are sidebars registered.
(bool) Active.
File: wp-includes/class-wp-customize-widgets.php
public function is_panel_active() { global $wp_registered_sidebars; return ! empty( $wp_registered_sidebars ); }
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_widgets/is_panel_active