widget_title filter-hookWC 1.0

This is a WordPress - widget_title hook. The plugin just uses it.

Output the html at the start of a widget.

Usage

add_filter( 'widget_title', 'wp_kama_widget_title_filter', 10, 3 );

/**
 * Function for `widget_title` filter-hook.
 * 
 * @param string $title    The widget title.
 * @param array  $instance Array of settings for the current widget.
 * @param mixed  $id_base  The widget ID.
 *
 * @return string
 */
function wp_kama_widget_title_filter( $title, $instance, $id_base ){

	// filter...
	return $title;
}
$title(string)
The widget title.
Default: 'Pages'
$instance(array)
Array of settings for the current widget.
$id_base(mixed)
The widget ID.

Where the hook is called

WC_Widget::widget_start()
widget_title
woocommerce/includes/abstracts/abstract-wc-widget.php 165
$title = apply_filters( 'widget_title', $this->get_instance_title( $instance ), $instance, $this->id_base );

Where the hook is used in WooCommerce

Usage not found.