Filters the parameters passed to a widget’s display callback.
Description
Note: The filter is evaluated on both the front end and back end, including for the Inactive Widgets sidebar on the Widgets screen.
See also
Parameters
$params
arrayargs
arrayAn array of widget display arguments.name
stringName of the sidebar the widget is assigned to.id
stringID of the sidebar the widget is assigned to.description
stringThe sidebar description.class
stringCSS class applied to the sidebar container.before_widget
stringHTML markup to prepend to each widget in the sidebar.after_widget
stringHTML markup to append to each widget in the sidebar.before_title
stringHTML markup to prepend to the widget title when displayed.after_title
stringHTML markup to append to the widget title when displayed.widget_id
stringID of the widget.widget_name
stringName of the widget.
widget_args
arrayAn array of multi-widget arguments.number
intNumber increment used for multiples of the same widget.
Source
$params = apply_filters( 'dynamic_sidebar_params', $params );
Changelog
Version Description 2.5.0 Introduced. User Contributed Notes
You must log in before being able to contribute a note or feedback.
Firstly we create a custom widget field end of the each widgets control form.
Now, we filter widget’s settings before saving. It will save our custom field
column
data.Finally, filter sidebar params for frontend. It will add class to
before_widget
fromcolumn
field