widget_comments_args

widget_comments_args

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.0.3

apply_filters('widget_comments_args') is found 1 times:

  • /wp-includes/widgets/class-wp-widget-recent-comments.php line 95
    		 *
    		 * @param array $comment_args An array of arguments used to retrieve the recent comments.
    		 * @param array $instance     Array of settings for the current widget.
    		 */
    		$comments = get_comments( apply_filters( 'widget_comments_args', array(
    			'number'      => $number,
    			'status'      => 'approve',
    			'post_status' => 'publish'
    		), $instance ) );
    
    		$output .= $args['before_widget'];