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

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

Description Description

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

Top ↑

Parameters Parameters


(string) The widget content.


(array) Array of settings for the current widget.


(WP_Widget_Text) Current Text widget instance.

Top ↑

Source Source

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

View on Trac

Top ↑

Changelog Changelog

Version Description
4.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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