Widget_Abstract::filter_updated_instance( $updated_instance, $new_instance )
{@inheritDoc}
Source
File: src/Tribe/Widget/Widget_Abstract.php
public function filter_updated_instance( $updated_instance, $new_instance ) {
/**
* Applies a filter to updated instance of a widget.
*
* @since 4.12.14
*
* @param array<string,mixed> $updated_instance The updated instance of the widget.
* @param array<string,mixed> $new_instance The new values for the widget instance.
* @param static $instance The widget instance we are dealing with.
*/
$updated_instance = apply_filters( 'tribe_widget_updated_instance', $updated_instance, $new_instance, $this );
$widget_slug = static::get_widget_slug();
/**
* Applies a filter to updated instance of a widget arguments based on the widget slug of the widget.
*
* @since 4.12.14
*
* @param array<string,mixed> $updated_instance The updated instance of the widget.
* @param array<string,mixed> $new_instance The new values for the widget instance.
* @param static $instance The widget instance we are dealing with.
*/
$updated_instance = apply_filters( "tribe_widget_{$widget_slug}_updated_instance", $updated_instance, $new_instance, $this );
return $updated_instance;
}