crp_widget_options_update
Filters Update widget options array.
Type: filter
Since: 2.0.0
Source: includes/frontend/widgets/class-related-posts-widget.php line 242
Parameters
| Type | Name | Description |
|---|---|---|
array | $instance | Widget options array |
array | $new_instance | Values just sent to be saved. |
array | $old_instance | Previously saved values from database. |
Usage
add_filter( 'crp_widget_options_update', function($instance, $new_instance, $old_instance) {
// ...
return $instance;
} );