WP_Customize_Widgets::filter_sidebars_widgets_for_rendering_widget( array $sidebars_widgets )

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

Parameters Parameters


(array) (Required) Sidebars widgets.

Top ↑

Return Return

(array) Filtered sidebars widgets.

Top ↑

Source Source

File: wp-includes/class-wp-customize-widgets.php

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

Top ↑

Changelog Changelog

Version Description
4.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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