apply_filters( 'widget_text', string $text, array $instance, WP_Widget_Text|WP_Widget_Custom_HTML $widget )

Filters the content of the Text widget.


Parameters

$text

The widget content.

$instance

Array of settings for the current widget.

$widget

Current text or HTML widget instance.


Source

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

View on GitHub



Changelog

Changelog
Version Description
4.8.1 The $widget param may now be a WP_Widget_Custom_HTML object in addition to a WP_Widget_Text object.
4.4.0 Added the $widget parameter.
2.3.0 Introduced.