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.
$textstring
$instancearray
$widgetWP_Widget_Text
$text = apply_filters( 'widget_text_content', $text, $instance, $this );
| Version | Description |
|---|---|
| 4.8.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_text_content