note_sidebar_being_rendered()WP 1.0

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().

Хуков нет.

Возвращает

null. Ничего.

Использование

note_sidebar_being_rendered( $index );
$index(int|строка) (обязательный)
Index, name, or ID of the dynamic sidebar.

Код note_sidebar_being_rendered() WP 6.0.2

function note_sidebar_being_rendered( $index ) {
	global $_sidebar_being_rendered;
	$_sidebar_being_rendered = $index;
}