wpseek.com
WordPress开发者和主题制作者的搜索引擎



is_active_sidebar › WordPress过滤钩子

Since3.9.0
已弃用n/a
› apply_filters( 'is_active_sidebar', $is_active_sidebar, $index )
参数: (2)
  • () is_active_sidebar Whether or not the sidebar should be considered "active". In other words, whether the sidebar contains any widgets.
    Required: Yes
  • () index Index, name, or ID of the dynamic sidebar.
    Required: Yes
定义在:
文档:

Filters whether a dynamic sidebar is considered "active".





源码

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