widget_form_callback filter-hook . WP 2.8.0
Filters the widget instance's settings before displaying the control form.
Returning false effectively short-circuits display of the control form.
Usage
add_filter( 'widget_form_callback', 'filter_function_name_1915', 10, 2 ); function filter_function_name_1915( $instance, $this ){ // filter... return $instance; }
- $instance(array)
- The current widget instance's settings.
- $this(WP_Widget)
- The current widget instance.
Changelog
Since 2.8.0 | Introduced. |
Where the hook is called
widget_form_callback
wp-includes/class-wp-widget.php 515
$instance = apply_filters( 'widget_form_callback', $instance, $this );