WordPress at a glance
filter is not described

widget_text_content filter-hook . WP 4.8.0

Filters the content of the Text widget to apply changes expected from the visual (TinyMCE) editor.

By default a subset of the_content filters are applied, including wpautop and wptexturize.

Usage

add_filter( 'widget_text_content', 'filter_function_name_282', 10, 3 );
function filter_function_name_282( $text, $instance, $this ){
	// filter...

	return $text;
}
$text(string)
The widget content.
$instance(array)
Array of settings for the current widget.
$this(WP_Widget_Text)
Current Text widget instance.

Where the hook is called

WP_Widget_Text::widget()
wp-includes/widgets/class-wp-widget-text.php 285
$text = apply_filters( 'widget_text_content', $text, $instance, $this );

Where the hook is used (in WP core)

wp-includes/class-wp-embed.php 33
add_filter( 'widget_text_content', array( $this, 'run_shortcode' ), 8 );
wp-includes/class-wp-embed.php 40
add_filter( 'widget_text_content', array( $this, 'autoembed' ), 8 );
wp-includes/default-filters.php 192
add_filter( 'widget_text_content', 'capital_P_dangit', 11 );
wp-includes/default-filters.php 193
add_filter( 'widget_text_content', 'wptexturize' );
wp-includes/default-filters.php 194
add_filter( 'widget_text_content', 'convert_smilies', 20 );
wp-includes/default-filters.php 195
add_filter( 'widget_text_content', 'wpautop' );
wp-includes/default-filters.php 196
add_filter( 'widget_text_content', 'shortcode_unautop' );
wp-includes/default-filters.php 197
add_filter( 'widget_text_content', 'do_shortcode', 11 ); // Runs after wpautop(); note that $post global will be null when shortcodes run.