W3cubDocs

/WordPress

apply_filters( ‘widget_title’, string $title, array $instance, mixed $id_base )

Filters the widget title.

Parameters

$titlestring
The widget title. Default 'Pages'.
$instancearray
Array of settings for the current widget.
$id_basemixed
The widget ID.

Source

$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );

Changelog

Version Description
2.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_title