dynamic_sidebar_before
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
do_action( 'dynamic_sidebar_before', int|string $index, bool $has_widgets )
Описание
Примечание: действие срабатывает и для пустых сайдбаров, как в публичной части сайта, так и в административной, включая сайдбар «Неактивные виджеты» на экране «Виджеты».
Оригинал (английский)
Note: The action also fires for empty sidebars, and on both the front end and back end, including the Inactive Widgets sidebar on the Widgets screen.
Параметры
$index
int|string
обязательный
$has_widgets
bool
обязательный
Исходный код
wp-includes/widgets.php:738
do_action( 'dynamic_sidebar_before', $index, true );
История изменений
| Версия | Описание |
|---|---|
| 3.9.0 | Introduced. |

