WordPress.org

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Filter Reference/widget title

Description

Filter the widget title.

<?php apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Pages' ) : $instance['title'], $instance, $this->id_base ); ?>

Parameters

$title
(string) (required) The widget title. Default 'Pages'.
Default: None
$instance
(array) (required) An array of the widget's settings.
Default: None
$id_base
(mixed ) (required) The widget ID.
Default: None

Source File

widget_title is located in wp-includes/default-widgets.php

Related