widget_custom_html_content

widget_custom_html_content

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('widget_custom_html_content') is found 1 times:

  • /wp-includes/widgets/class-wp-widget-custom-html.php line 161
    		 * @param string                $content  The widget content.
    		 * @param array                 $instance Array of settings for the current widget.
    		 * @param WP_Widget_Custom_HTML $widget   Current Custom HTML widget instance.
    		 */
    		$content = apply_filters( 'widget_custom_html_content', $content, $instance, $this );
    
    		// Restore post global.
    		$post = $original_post;
    		remove_filter( 'shortcode_atts_gallery', array( $this, '_filter_gallery_shortcode_attrs' ) );
    
    		// Inject the Text widget's container class name alongside this widget's class name for theme styling compatibility.