note_sidebar_being_rendered

The timeline below displays how wordpress function note_sidebar_being_rendered has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.9

/**
 * 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().
 *
 * @param int|string $index       Index, name, or ID of the dynamic sidebar.
 */
function note_sidebar_being_rendered($index)
{
    global $_sidebar_being_rendered;
    $_sidebar_being_rendered = $index;
}