apply_filters( 'widget_text_content', string $text, array $instance, WP_Widget_Text $this )

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


Description

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


Parameters

$text

The widget content.

$instance

Array of settings for the current widget.

$this

Current Text widget instance.


Source

File: wp-includes/widgets/class-wp-widget-text.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.8.0 Introduced.