A WordPress-centric search engine for devs and theme authors



widget_text_content ›

Since4.8.0
Deprecatedn/a
apply_filters( 'widget_text_content', $text, $instance, $this )
Parameters: (3)
  • (string) $text The widget content.
    Required: Yes
  • (array) $instance Array of settings for the current widget.
    Required: Yes
  • (WP_Widget_Text) $this Current Text widget instance.
    Required: Yes
Defined at:
Codex:

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.





Source

$text = apply_filters( 'widget_text_content', $text, $instance, $this );