widget_custom_html_content filter-hook . WP 4.8.1
Filters the content of the Custom HTML widget.
Usage
add_filter( 'widget_custom_html_content', 'filter_function_name_385', 10, 3 ); function filter_function_name_385( $content, $instance, $this ){ // filter... return $content; }
- $content(string)
- The widget content.
- $instance(array)
- Array of settings for the current widget.
- $this(WP_Widget_Custom_HTML)
- Current Custom HTML widget instance.
Changelog
Since 4.8.1 | Introduced. |
Where the hook is called
wp-includes/widgets/class-wp-widget-custom-html.php 161
$content = apply_filters( 'widget_custom_html_content', $content, $instance, $this );