Core Function
View Source on Trac ↗ is_active_sidebar()
is_active_sidebar( mixed $index ) Determines whether a sidebar contains widgets.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (string | | int) $index Sidebar name, id or number to check. Required |
Return Value
(bool)
True if the sidebar has widgets, false otherwise.
Function Information
Since Version
2.8.0
Source File
wp-includes/widgets.php
Advertisement