Not long ago I learned how to add and filter comments on posts/pages with certain meta key/value and it works fine now. Now what I want is to do two things on the backend (/wp-admin):
- Filter the /wp-admin/edit-comments.php so it will not display any comments which has the certain meta keys (e.g. meta1, meta2) in there.
- Make a list in a custom menu page in the admin backend which will list comments like /wp-admin/edit-comments.php but will only show those comments that has the meta keys like above.
I've been searching around for something like this but only found stuffs like filtering the backend comment list by current user, etc. and not by comment meta keys. I've also never done anything in the backend other than adding some menu/submenu with functions and options so I don't know where to start on these filters, though I have a feeling this has something to do wit WP_Query functions.