widget_text

Advertisement

Summery Summery

Filters the content of the Text widget.

Syntax Syntax

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

Parameters Parameters

$text

(string) The widget content.

$instance

(array) Array of settings for the current widget.

$this

(WP_Widget_Text|WP_Widget_Custom_HTML) Current Text widget instance.

Source Source

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

Advertisement

Changelog Changelog

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

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.