On this page
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
File: wp-includes/widgets/class-wp-widget-pages.php. View all references
$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
Related
Used By
| Used By | Description |
|---|---|
| WP_Widget_Custom_HTML::widget() wp-includes/widgets/class-wp-widget-custom-html.php | Outputs the content for the current Custom HTML widget instance. |
| WP_Widget_Media::widget() wp-includes/widgets/class-wp-widget-media.php | Displays the widget on the front-end. |
| WP_Nav_Menu_Widget::widget() wp-includes/widgets/class-wp-nav-menu-widget.php | Outputs the content for the current Navigation Menu widget instance. |
| WP_Widget_Tag_Cloud::widget() wp-includes/widgets/class-wp-widget-tag-cloud.php | Outputs the content for the current Tag Cloud widget instance. |
| WP_Widget_RSS::widget() wp-includes/widgets/class-wp-widget-rss.php | Outputs the content for the current RSS widget instance. |
| WP_Widget_Recent_Comments::widget() wp-includes/widgets/class-wp-widget-recent-comments.php | Outputs the content for the current Recent Comments widget instance. |
| WP_Widget_Recent_Posts::widget() wp-includes/widgets/class-wp-widget-recent-posts.php | Outputs the content for the current Recent Posts widget instance. |
| WP_Widget_Categories::widget() wp-includes/widgets/class-wp-widget-categories.php | Outputs the content for the current Categories widget instance. |
| WP_Widget_Text::widget() wp-includes/widgets/class-wp-widget-text.php | Outputs the content for the current Text widget instance. |
| WP_Widget_Calendar::widget() wp-includes/widgets/class-wp-widget-calendar.php | Outputs the content for the current Calendar widget instance. |
| WP_Widget_Meta::widget() wp-includes/widgets/class-wp-widget-meta.php | Outputs the content for the current Meta widget instance. |
| WP_Widget_Archives::widget() wp-includes/widgets/class-wp-widget-archives.php | Outputs the content for the current Archives widget instance. |
| WP_Widget_Search::widget() wp-includes/widgets/class-wp-widget-search.php | Outputs the content for the current Search widget instance. |
| WP_Widget_Pages::widget() wp-includes/widgets/class-wp-widget-pages.php | Outputs the content for the current Pages widget instance. |
Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_title