widget_form_callback WordPress Filter Hook
The widget_form_callback hook is used to modify the output of a widget form. This hook is useful for adding extra fields to a widget form, or for changing the order in which fields are output.
apply_filters( 'widget_form_callback', array $instance , WP_Widget $widget ) #
Filters the widget instance’s settings before displaying the control form.
Description
Returning false effectively short-circuits display of the control form.
Parameters
- $instance
(array)The current widget instance's settings.
- $widget
(WP_Widget)The current widget instance.
Source
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |