wpseek.com
A WordPress-centric search engine for devs and theme authors



discard_sidebar_being_rendered › WordPress Function

Since5.9.0
Deprecatedn/a
discard_sidebar_being_rendered ( No parameters )
Defined at:
Codex:

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



Source

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