HOWTO: Add Your Custom Comment Type in Admin For Filtering
By default there are two comment types: comments, and pings. If you add in a custom comment type and want to be able to view only those comments – there is an easy way to accomplish that.
For this example: my custom comment type = ‘recipe_review’. In order for it to show in the wp-admin/edit-comments.php view (WP Admin > Comments) you will need to add this snippet into your functions.php file (or with your custom plugin which introduces the new comment type:
/** * Add Comment Type to the comments view * */ add_filter( 'admin_comment_types_dropdown', 'sdacinc_2025_comment_filter' ); function sdacinc_2025_comment_filter( array $comment_types ): array { $comment_types['recipe_review'] = __( 'Recipe Reviews', 'sdac-2025' ); return $comment_types; }
Note – you will need to change out ‘recipe_review’ for whatever you are using. Once you save that, go back to the WP Admin > Comments and you will see your comment type now listed in the “All comment types” dropdown which will allow you to filter only that comment type.
Hopefully this will help you to go through different types of comments quickly and easily.