Recent

widget_titlefilter

widget_title

Filters the widget title.

Type: filter
Since: 2.6.0
Source: includes/frontend/widgets/class-related-posts-widget.php line 291

Parameters

Type Name Description
string $title The widget title. Default ‘Pages’.
array $instance Array of settings for the current widget.
mixed $id_base The widget ID.

Usage

add_filter( 'widget_title', function($title, $instance, $id_base) {
    // ...
    return $title;
} );