wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



widget_text_content › Filtr WordPress Hooks

Od4.8.0
Przestarzałyn/a
apply_filters( 'widget_text_content', $text, $instance, $this )
Parametry: (3)
  • (string) $text The widget content.
    Wymagane: Tak
  • (array) $instance Array of settings for the current widget.
    Wymagane: Tak
  • (WP_Widget_Text) $widget Current Text widget instance.
    Wymagane: Tak
Zdefiniowane na:
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.





Źródło

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