discard_sidebar_being_rendered

函数


discard_sidebar_being_rendered ( No parameters )
定义位置
  • wp-includes/blocks/widget-group.php
    , line 74
引入
弃用

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

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