I have set a bunch of roles within wordpress with the help of the "members" plugin. But the capabilities regarding the comments moderation are very limited ("manage_others_comments" or not)
What I need to do is: "If my user is level1, only show the comments of category A,B,C, but if my user is level2, only show comments from category B,D,E"
I would need that for the "Admin dashboard", for the "Admin post edit", and, if possible, for the "admin search form".
I'm struggling with the code to find where I can find the scripts making the related db queries in order to filter them by categories but I just can't find them.
PS: I only need this feature for the Admin panel, no the front-end.