apply_filters( 'widget_update_callback', array $instance, array $new_instance, array $old_instance, WP_Widget $this )

Filters a widget’s settings before saving.

Description Description

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

Parameters Parameters


(array) The current widget instance's settings.


(array) Array of new widget settings.


(array) Array of old widget settings.


(WP_Widget) The current widget instance.

Top ↑

Source Source

File: wp-includes/class-wp-widget.php

View on Trac

Top ↑

Changelog Changelog

Version Description
2.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.