A WordPress-centric search engine for devs and theme authors



widget_update_callback ›

Since2.8.0
Deprecatedn/a
apply_filters( 'widget_update_callback', $instance, $new_instance, $old_instance, $this )
Parameters: (4)
  • (array) $instance The current widget instance's settings.
    Required: Yes
  • (array) $new_instance Array of new widget settings.
    Required: Yes
  • (array) $old_instance Array of old widget settings.
    Required: Yes
  • (WP_Widget) $this The current widget instance.
    Required: Yes
Defined at:
Codex:

Filters a widget's settings before saving.

Returning false will effectively short-circuit the widget's ability to update settings.





Source

$instance = apply_filters( 'widget_update_callback', $instance, $new_instance, $old_instance, $this );