note_sidebar_being_rendered
note_sidebar_being_rendered ( $index )
Parameters:- (int|string) index Index, name, or ID of the dynamic sidebar.
Defined at: - Introduced in WordPress: 5.9.0
- Deprecated in WordPress: —
Description
Make a note of the sidebar being rendered before WordPress starts rendering
it. This lets us get to the current sidebar in
render_block_core_widget_group().