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

Filters the arguments for the Recent Comments widget.


Description

Top ↑

See also


Top ↑

Parameters

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

Top ↑

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
)


Top ↑

Changelog

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

Top ↑

User Contributed Notes

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