On this page
apply_filters( 'widget_comments_args', array $comment_args, array $instance )
Filters the arguments for the Recent Comments widget.
Description
See also
- WP_Comment_Query::query(): for information on accepted arguments.
Parameters
$comment_argsarray-
An array of arguments used to retrieve the recent comments.
$instancearray-
Array of settings for the current widget.
Source
File: wp-includes/widgets/class-wp-widget-recent-comments.php. View all references
apply_filters(
'widget_comments_args',
array(
'number' => $number,
'status' => 'approve',
'post_status' => 'publish',
),
$instance
)
Related
Used By
| Used By | Description |
|---|---|
| WP_Widget_Recent_Comments::widget() wp-includes/widgets/class-wp-widget-recent-comments.php | Outputs the content for the current Recent Comments widget instance. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_comments_args