On this page
apply_filters( 'widget_custom_html_content', string $content, array $instance, WP_Widget_Custom_HTML $widget )
Filters the content of the Custom HTML widget.
Parameters
$contentstring-
The widget content.
$instancearray-
Array of settings for the current widget.
$widgetWP_Widget_Custom_HTML-
Current Custom HTML widget instance.
Source
File: wp-includes/widgets/class-wp-widget-custom-html.php. View all references
$content = apply_filters( 'widget_custom_html_content', $content, $instance, $this );
Related
Used By
| Used By | Description |
|---|---|
| WP_Widget_Custom_HTML::widget() wp-includes/widgets/class-wp-widget-custom-html.php | Outputs the content for the current Custom HTML widget instance. |
Changelog
| Version | Description |
|---|---|
| 4.8.1 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_custom_html_content