apply_filters( ‘widget_comments_args’, array $comment_args, array $instance )

Filters the arguments for the Recent Comments widget.

Description

See also

Parameters

$comment_argsarray
An array of arguments used to retrieve the recent comments.
$instancearray
Array of settings for the current widget.

Source

apply_filters(
	'widget_comments_args',
	array(
		'number'      => $number,
		'status'      => 'approve',
		'post_status' => 'publish',
	),
	$instance
)

Changelog

VersionDescription
4.9.0Added the $instance parameter.
3.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.