widget_comments_args
widget_comments_args
Appears in: gutenberg.3.3.0, gutenberg.3.6.2, wordpress-4.0, wordpress-4.4, wordpress-4.8, wordpress-4.9, wordpress-4.9.4, wordpress-4.9.5, wordpress-4.9.6, wordpress-4.9.7, wordpress-4.9.8, wordpress-5.0, wordpress-5.0.1, wordpress-5.0.2, wordpress-5.0.3
Hook Type: filter
Displaying hooks found in version: wordpress-5.0.3apply_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'];