is_active_sidebar

最后更新于:2021-11-27 02:10:16

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

Filters whether a dynamic sidebar is considered “active”.

参数

$is_active_sidebar

(bool)
Whether or not the sidebar should be considered “active”. In other words, whether the sidebar contains any widgets.

$index

(int|string)
Index, name, or ID of the dynamic sidebar.

源文件

文件: gc-includes/widgets.php

View on Trac