W3cubDocs

/WordPress

apply_filters( 'widget_comments_args', array $comment_args, array $instance )

Filters the arguments for the Recent Comments widget.

Description

See also

Parameters

$comment_args

(array) An array of arguments used to retrieve the recent comments.

$instance

(array) Array of settings for the current widget.

Source

File: wp-includes/widgets/class-wp-widget-recent-comments.php

View on Trac

Changelog

Version Description
4.9.0 Added the $instance parameter.
3.4.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_comments_args