dynamic_sidebar_has_widgets

最后更新于:2021-11-26 09:01:02

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

Filters whether a sidebar has widgets.

参数

$did_one

(bool)
Whether at least one widget was rendered in the sidebar. Default false.

$index

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

源文件

文件: gc-includes/widgets.php

View on Trac