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: - Introduced in WordPress: 2.8.0
- Deprecated in WordPress: —
Description
Determines whether a sidebar contains widgets.For more information on this and similar theme functions, check out
the {@link Conditional Tags} article in the Theme Developer Handbook.