Filters the arguments for the Recent Comments widget.
$comment_argsarray$instancearraywp-includes/blocks/latest-comments.php:55render_block_core_latest_comments()wp-includes/widgets/class-wp-widget-recent-comments.php:104WP_Widget_Recent_Comments::widget() * * @see WP_Comment_Query::query() for information on accepted arguments. * * @param array $comment_args An array of arguments used to retrieve the recent comments. * @param array $instance Array of settings for the current widget. */ apply_filters( 'widget_comments_args', array( 'number' => $number, 'status' => 'approve', 'post_status' => 'publish', ),Introduced in 3.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.