widget_title

The shortcodes-ultimate widget title hook.

Published Date - February 15, 2021

Description

$title = apply_filters( 'widget_title', $instance['title'] );

Parameters

  1. $instance['title']


Usage

The following example is for adding a hook callback.

// define the widget_title callback 
function custom_widget_title( $instance['title'] ){ 
   //custom code here
    return $instance['title']
} 

//add the action 
add_filter('widget_title', 'custom_widget_title', 10, 1)

Defined

The filter is defined in the following location(s).

shortcodes-ultimate/inc/core/widget.php

$title = apply_filters( 'widget_title', $instance['title'] );