widget_update_callback

Advertisement

Summery Summery

Filters a widget’s settings before saving.

Syntax Syntax

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

Description Description

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

Parameters Parameters

$instance

The current widget instance's settings.

$new_instance

Array of new widget settings.

$old_instance

Array of old widget settings.

$this

The current widget instance.

Source Source

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply