Fires at the end of the widget control form.
Description
Use this hook to add extra fields to the widget form. The hook is only fired if the value passed to the ‘widget_form_callback’ hook is not false.
Note: If the widget has no form, the text echoed from the default form method can be hidden using CSS.
Parameters
$widgetWP_Widget- The widget instance (passed by reference).
$returnnull- Return null if new fields are added.
$instancearray- An array of the widget’s settings.
Source
do_action_ref_array( 'in_widget_form', array( &$this, &$return, $instance ) );
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
Add custom widget field end of the widgets control form.
Filter widget’s settings before saving. It will save our custom field
columndata.