discard_sidebar_being_rendered()WP 1.0

Clear whatever we set in note_sidebar_being_rendered() after WordPress finishes rendering a sidebar.

Хуков нет.

Возвращает

null. Ничего (null).

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

discard_sidebar_being_rendered();

Код discard_sidebar_being_rendered() WP 6.5.3

function discard_sidebar_being_rendered() {
	global $_sidebar_being_rendered;
	unset( $_sidebar_being_rendered );
}