I use comments with a custom comment type in my plugin to notify users of various events created by the plugin.
The problem is I don’t want these cluttering up the standard comments so I need to filter out those custom comments from the manage comments screen as well as the recent comments dashboard widget.
Does anyone have any ideas on how to do this?
Doh, looks like the answer was staring me in the face.
What this does is edit all comment queries to find comments that don’t have a type of system_message
Hope this helps someone 🙂