note_sidebar_being_rendered() – 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().
You appear to be a bot. Output may be restricted
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().
Usage
note_sidebar_being_rendered( $index );
Parameters
- $index
- ( int|string ) required – Index, name, or ID of the dynamic sidebar.
Returns
void
Source
File name: wordpress/wp-includes/blocks/widget-group.php
Lines:
1 to 5 of 5
function note_sidebar_being_rendered( $index ) { global $_sidebar_being_rendered; $_sidebar_being_rendered = $index; }