A WordPress-centric search engine for devs and theme authors



is_active_sidebar ›

Since3.9.0
Deprecatedn/a
apply_filters( 'is_active_sidebar', $is_active_sidebar, $index )
Parameters: (2)
  • (bool) $is_active_sidebar Whether or not the sidebar should be considered "active". In other words, whether the sidebar contains any widgets.
    Required: Yes
  • (int|string) $index Index, name, or ID of the dynamic sidebar.
    Required: Yes
Defined at:
Codex:

Filters whether a dynamic sidebar is considered "active".





Source

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