WordPress filter hook

widget_title1

Fired by 2 WordPress plugins, running on 100+ sites between them.

How to use widget_title1

It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'widget_title1', function( $empty, $instance, $id_base ) {
	// Change $empty here.
	return $empty;
}, 10, 3 );

Argument names come from Call to Action Widget's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

2 plugins that fire widget_title1

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Call to Action Widget icon Call to Action Widget100+ installs apply_filters( 'widget_title1', empty( $instance['title1'] ) ? '' : $instance['title1'], $instance, $this->id_base ) cta-widget.php:24
  2. Dataclermont Bootstrap Widgets icon Dataclermont Bootstrap WidgetsFewer than 10 installs apply_filters( 'widget_title1', $instance['title1'] ) widgets/featured_boxes.php:24

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.