query_vars['type'] ) && '' === $query->query_vars['type'] ) { $query->set( 'type', '' ); add_filter( 'comments_clauses', function ( $clauses ) { global $wpdb; // Exclude comments of type 'block_comment' $clauses['where'] .= " AND {$wpdb->comments}.comment_type != 'block_comment'"; return $clauses; } ); } } add_action( 'pre_get_comments', 'exclude_block_comments_from_admin' ); }