diff --git a/core/um-query.php b/core/um-query.php index 7fe8b671..4f1d469f 100644 --- a/core/um-query.php +++ b/core/um-query.php @@ -91,7 +91,7 @@ class UM_Query { if ( $post_type == 'comment' ) { // comments unset( $args['post_type'] ); - unset( $args['post_status'] ); + $args['type__not_in'] = apply_filters( 'um_excluded_comment_types', array('') ); $comments = get_comments($args);