Filters the content of the Text widget.
$textstring$instancearray$widgetWP_Widget_Text|WP_Widget_Custom_HTMLwp-includes/widgets/class-wp-widget-custom-html.php:150WP_Widget_Custom_HTML::widget()wp-includes/widgets/class-wp-widget-text.php:283WP_Widget_Text::widget() * @since 4.8.1 The `$widget` param may now be a `WP_Widget_Custom_HTML` object in addition to a `WP_Widget_Text` object. * * @param string $text The widget content. * @param array $instance Array of settings for the current widget. * @param WP_Widget_Text|WP_Widget_Custom_HTML $widget Current text or HTML widget instance. */ $text = apply_filters( 'widget_text', $text, $instance, $this ); if ( $is_visual_text_widget ) { /** * Filters the content of the Text widget to apply changes expected from the visual (TinyMCE) editor. *Introduced in 2.3.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.