Recent

crp_widget_options filter

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

TypeNameDescription
array$argumentsCRP widget options array.
array$argsWidget arguments.
array$instanceSaved values from database.
mixed$id_baseThe widget ID.

Usage

add_filter( 'crp_widget_options', function($arguments, $args, $instance, $id_base) {
    // ...
    return $arguments;
} );