crp_widget_options
Filters arguments passed to get_crp for the widget.
Type: filter
Since: 2.0.0
Source: includes/frontend/widgets/class-related-posts-widget.php line 337
Parameters
| Type | Name | Description |
|---|---|---|
array | $arguments | CRP widget options array. |
array | $args | Widget arguments. |
array | $instance | Saved values from database. |
mixed | $id_base | The widget ID. |
Usage
add_filter( 'crp_widget_options', function($arguments, $args, $instance, $id_base) {
// ...
return $arguments;
} );