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
    091
    092
    093
    094
    095
    096
    097
    098
    099
    100
    101
    *
     * @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'];