is_active_sidebar


is_active_sidebar ( $index )

Parameters:
  • (string|int) index Sidebar name, id or number to check.
Returns:
  • (bool) True if the sidebar has widgets, false otherwise.
Defined at:

Description

Determines whether a sidebar contains widgets.For more information on this and similar theme functions, check out the [Conditional Tags](https://developer.wordpress.org/themes/basics/conditional-tags/) article in the Theme Developer Handbook.

Related Functions

is_active_widget, is_dynamic_sidebar, register_sidebar, register_sidebars, unregister_sidebar

Top Google Results

User discussions

wpseek mobile