Filter hook 'widget_form_callback'

in WP Core File wp-includes/class-wp-widget.php at line 530

Description

Filters the widget instance's settings before displaying the control form. Returning false effectively short-circuits display of the control form.

Occurrences

Filename Line Number
wp-includes/class-wp-widget.php 530
wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php 571

Parameters

Type Name Description
array $instance The current widget instance's settings.
WP_Widget $widget The current widget instance.

PHP Doc

/**
		 * Filters the widget instance's settings before displaying the control form.
		 *
		 * Returning false effectively short-circuits display of the control form.
		 *
		 * @since 2.8.0
		 *
		 * @param array     $instance The current widget instance's settings.
		 * @param WP_Widget $widget   The current widget instance.
		 */