apply_filters( ‘is_active_sidebar’, bool $is_active_sidebar, int|string $index )

In this article

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

return apply_filters( 'is_active_sidebar', $is_active_sidebar, $index );

Changelog

VersionDescription
3.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.