wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



widget_update_callback › WordPress Filter Hooks

Seit2.8.0
Veraltetn/v
apply_filters( 'widget_update_callback', $instance, $new_instance, $old_instance, $this )
Parameter: (4)
  • () instance The current widget instance's settings.
    Erforderlich: Ja
  • () new_instance Array of new widget settings.
    Erforderlich: Ja
  • () old_instance Array of old widget settings.
    Erforderlich: Ja
  • () widget The current widget instance.
    Erforderlich: Ja
Definiert in:
Codex:

Filters a widget's settings before saving.

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




Quellcode

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