WP_Customize_Widgets::filter_sidebars_widgets_for_rendering_widget( array $sidebars_widgets ): array

In this article

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

Parameters

$sidebars_widgetsarrayrequired
Sidebars widgets.

Return

array Filtered sidebars widgets.

Source

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

Changelog

VersionDescription
4.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.