WordPress at Your Fingertips
function is not described

WP_Customize_Widgets::filter_sidebars_widgets_for_rendering_widget() public WP 4.5.0

Filters sidebars_widgets to ensure the currently-rendered widget is the only widget in the current sidebar.

{} It's a method of the class: WP_Customize_Widgets{}

No Hooks.


Array. Filtered sidebars widgets.


$WP_Customize_Widgets = new WP_Customize_Widgets();
$WP_Customize_Widgets->filter_sidebars_widgets_for_rendering_widget( $sidebars_widgets );
$sidebars_widgets(array) (required)
Sidebars widgets.


Since 4.5.0 Introduced.

Code of WP_Customize_Widgets::filter_sidebars_widgets_for_rendering_widget() WP 5.8

public function filter_sidebars_widgets_for_rendering_widget( $sidebars_widgets ) {
	$sidebars_widgets[ $this->rendering_sidebar_id ] = array( $this->rendering_widget_id );
	return $sidebars_widgets;