Title: show_recent_comments_widget_style
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘show_recent_comments_widget_style’, bool $active, string $id_base )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/show_recent_comments_widget_style/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/show_recent_comments_widget_style/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/show_recent_comments_widget_style/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/show_recent_comments_widget_style/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/show_recent_comments_widget_style/?output_format=md#wp--skip-link--target)

Filters the Recent Comments default widget styles.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/show_recent_comments_widget_style/?output_format=md#parameters)󠁿

 `$active`bool

Whether the widget is active. Default true.

`$id_base`string

The widget ID.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/show_recent_comments_widget_style/?output_format=md#source)󠁿

    ```php
    || ! apply_filters( 'show_recent_comments_widget_style', true, $this->id_base ) ) {
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/widgets/class-wp-widget-recent-comments.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/widgets/class-wp-widget-recent-comments.php#L54)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/widgets/class-wp-widget-recent-comments.php#L54-L54)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/show_recent_comments_widget_style/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Widget_Recent_Comments::recent_comments_style()](https://developer.wordpress.org/reference/classes/wp_widget_recent_comments/recent_comments_style/)`wp-includes/widgets/class-wp-widget-recent-comments.php` |

Outputs the default styles for the Recent Comments widget.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/show_recent_comments_widget_style/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.1.0](https://developer.wordpress.org/reference/since/3.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fshow_recent_comments_widget_style%2F)
before being able to contribute a note or feedback.