Un motore di ricerca WordPress per sviluppatori e autori di temi



widget_update_callback ›

Da2.8.0
Deprecaton/a
apply_filters( 'widget_update_callback', $instance, $new_instance, $old_instance, $this )
Parametri: (4)
  • (array) $instance The current widget instance's settings.
    Richiesto:
  • (array) $new_instance Array of new widget settings.
    Richiesto:
  • (array) $old_instance Array of old widget settings.
    Richiesto:
  • (WP_Widget) $this The current widget instance.
    Richiesto:
Definito a:
Codex:

Filters a widget's settings before saving.

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





Sorgenti

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