Filters sidebars_widgets to ensure the currently-rendered widget is the only widget in the current sidebar.
Parameters
$sidebars_widgets
arrayrequired- 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
Version | Description |
---|---|
4.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.