Recent

wzkb_widget_optionsfilter

wzkb_widget_options

Filters the arguments passed to the list function backing a Knowledge Base widget.

Each widget passes the arguments for its own list function, so the shape of $arguments depends on the widget firing the filter. Inspect $id_base to tell them apart.

Type: filter
Since: 1.9.0
Source: includes/widgets/class-sections-widget.php line 178

Parameters

Type Name Description
array $arguments WZ Knowledge Base widget options array.
array $args Widget arguments.
array $instance Saved values from database.
mixed $id_base The widget ID.
mixed $number Unique widget number.

Usage

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