widget_text_content

Advertisement

Summery Summery

Filters the content of the Text widget to apply changes expected from the visual (TinyMCE) editor.

Syntax Syntax

apply_filters( 'widget_text_content', string $text, array $instance, WP_Widget_Text $this )

Description Description

By default a subset of the_content filters are applied, including wpautop and wptexturize.

Parameters Parameters

$text

(string) The widget content.

$instance

(array) Array of settings for the current widget.

$this

(WP_Widget_Text) Current Text widget instance.

Source Source

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.8.0 Introduced.

Advertisement

Leave a Reply

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