dynamic_sidebar_before – Hook | Developer.WordPress.org
Fires before widgets are rendered in a dynamic sidebar.
Description
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.
Parameters
Index, name, or ID of the dynamic sidebar.
Whether the sidebar is populated with widgets.
Default true.
$index
int|string$has_widgets
boolSource
do_action( 'dynamic_sidebar_before', $index, true );
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |