WordPress at a glance
функция не описана

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{}

Хуков нет.

Возвращает

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.

Changelog

Since 4.5.0 Introduced.

Код WP_Customize_Widgets::filter_sidebars_widgets_for_rendering_widget() WP 5.5.1

<?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;
}