wpseek.com
WordPress开发者和主题制作者的搜索引擎



widget_text_content › WordPress过滤钩子

Since4.8.0
已弃用n/a
apply_filters( 'widget_text_content', $text, $instance, $this )
参数: (3)
  • (string) $text The widget content.
    Required: Yes
  • (array) $instance Array of settings for the current widget.
    Required: Yes
  • (WP_Widget_Text) $widget Current Text widget instance.
    Required: Yes
定义在:
文档:

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.





源码

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