过滤动态侧边栏是否被视为“活动”。
原型
apply_filters( 'is_active_sidebar', bool $is_active_sidebar, int|string $index )
参数
$is_active_sidebar
(bool)
是否应将侧边栏视为“活动”。换句话说,侧边栏是否包含任何小部件。
$index
(int|string)
动态侧边栏的索引,名称或ID。
源文件
路径:wp-includes/widgets.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/is_active_sidebar/