wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



widget_text_content › Les Filtres WordPress

Depuis4.8.0
Dépréciéen/a
apply_filters( 'widget_text_content', $text, $instance, $this )
Paramètres: (3)
  • (string) $text The widget content.
    Requis: Oui
  • (array) $instance Array of settings for the current widget.
    Requis: Oui
  • (WP_Widget_Text) $widget Current Text widget instance.
    Requis: Oui
Défini(e) dans:
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 );