wpseek.com
A WordPress-centric search engine for devs and theme authors



widget_update_callback › WordPress Filter Hooks

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) $widget 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 );