apply_filters( ‘widget_text_content’, string $text, array $instance, WP_Widget_Text $widget )

In this article

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

$textstring
The widget content.
$instancearray
Array of settings for the current widget.
$widgetWP_Widget_Text
Current Text widget instance.

Source

$text = apply_filters( 'widget_text_content', $text, $instance, $this );

Changelog

VersionDescription
4.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.