is_active_sidebar


is_active_sidebar ( $index )

Parameters:
  • (string|int) $index Sidebar name, id or number to check.
Returns:
  • (bool) true if the sidebar is in use, false otherwise.
Defined at:

Description

Determines whether a sidebar is in use.

For more information on this and similar theme functions, check out the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 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