show_recent_comments_widget_style
Filters the Recent Comments default widget styles.
Usage
add_filter( 'show_recent_comments_widget_style', 'wp_kama_show_recent_comments_widget_style_filter', 10, 2 );
/**
* Function for `show_recent_comments_widget_style` filter-hook.
*
* @param bool $active Whether the widget is active.
* @param string $id_base The widget ID.
*
* @return bool
*/
function wp_kama_show_recent_comments_widget_style_filter( $active, $id_base ){
// filter...
return $active;
}
- $active(true|false)
- Whether the widget is active.
Default: true - $id_base(string)
- The widget ID.
Changelog
| Since 3.1.0 | Introduced. |
Where the hook is called
show_recent_comments_widget_style
wp-includes/widgets/class-wp-widget-recent-comments.php 54
|| ! apply_filters( 'show_recent_comments_widget_style', true, $this->id_base ) ) {