wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



widget_text_content › WordPress Filter Hooks

Seit4.8.0
Veraltetn/v
apply_filters( 'widget_text_content', $text, $instance, $this )
Parameter: (3)
  • (string) $text The widget content.
    Erforderlich: Ja
  • (array) $instance Array of settings for the current widget.
    Erforderlich: Ja
  • (WP_Widget_Text) $widget Current Text widget instance.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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