On this page
apply_filters( 'is_active_sidebar', bool $is_active_sidebar, int|string $index )
Filters whether a dynamic sidebar is considered “active”.
Parameters
$is_active_sidebarbool-
Whether or not the sidebar should be considered "active".
In other words, whether the sidebar contains any widgets. $indexint|string-
Index, name, or ID of the dynamic sidebar.
Source
File: wp-includes/widgets.php. View all references
return apply_filters( 'is_active_sidebar', $is_active_sidebar, $index );
Related
Used By
| Used By | Description |
|---|---|
| is_active_sidebar() wp-includes/widgets.php | Determines whether a sidebar contains widgets. |
Changelog
| Version | Description |
|---|---|
| 3.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/is_active_sidebar