show_recent_comments_widget_style
The WordPress Core show recent comments widget style hook.
Description
Parameters (2)
- 0. $true (bool) =>
true
- The true.
- 1. $this_id_base (unknown)
- The this id base.
Usage
- To run the hook, copy the example below.
- $true = apply_filters( 'show_recent_comments_widget_style', $true, $this_id_base );
- if ( !empty( $true ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the show_recent_comments_widget_style callback
- function filter_show_recent_comments_widget_style( $true, $this_id_base ) {
- // make filter magic happen here...
- return $true;
- };
- // add the filter
- add_filter( 'show_recent_comments_widget_style', 'filter_show_recent_comments_widget_style', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'show_recent_comments_widget_style', 'filter_show_recent_comments_widget_style', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /wp-includes/widgets/class-wp-widget-recent-comments.php
- || ! apply_filters( 'show_recent_comments_widget_style', true, $this->id_base ) )