Filter hook 'widget_text_content'
in WP Core File wp-includes/widgets/class-wp-widget-text.php at line 298
Description
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.
Occurrences
Filename |
Line Number |
wp-includes/widgets/class-wp-widget-text.php |
298 |
Parameters
Type |
Name |
Description |
string |
$text |
The widget content. |
array |
$instance |
Array of settings for the current widget. |
WP_Widget_Text |
$widget |
Current Text widget instance. |
PHP Doc
/**
* 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.
*
* @since 4.8.0
*
* @param string $text The widget content.
* @param array $instance Array of settings for the current widget.
* @param WP_Widget_Text $widget Current Text widget instance.
*/