widget_custom_html_content

过滤钩子


apply_filters( 'widget_custom_html_content', $content, $instance, $this )
参数
  • (string)
    $content
    The widget content.
    Required:
  • (array)
    $instance
    Array of settings for the current widget.
    Required:
  • (WP_Widget_Custom_HTML)
    $widget
    Current Custom HTML widget instance.
    Required:
定义位置
  • wp-includes/widgets/class-wp-widget-custom-html.php
    , line 162
引入
4.8.1
弃用

Filters the content of the Custom HTML widget.

$content = apply_filters( 'widget_custom_html_content', $content, $instance, $this );