Uma área de pesquisa sobre o WordPress para devs e autores do tema



widget_update_callback ›

Desde2.8.0
Obsoleton/a
apply_filters( 'widget_update_callback', $instance, $new_instance, $old_instance, $this )
Parâmetros: (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
Definido em:
Codex:

Filters a widget's settings before saving.

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





Fonte

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