WP_Customize_Widgets::is_panel_active(): bool

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


Description

Top ↑

See also

  • WP_Customize_Panel::$active_callback

Top ↑

Return

bool Active.


Top ↑

Source

File: wp-includes/class-wp-customize-widgets.php. View all references

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

Top ↑

Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.