Hide / block access to pending comments based on user-role
-
Hello everyone,
I’m using WP for a school project. Sometimes we get bad spam comments, which are visible for students in the backend. To avoid this I’d like to hide and / or block access to pending / unapproved comments based on user-roles in the backend, i. e. in the comments section and (if possible) the icon / number in the admin-bar.
I set up a comments black-list already, but this isn’t really reliable. I also searched the web for another solution (WP settings / permissions / plugin / code), but didn’t find any working ideas so far. Can anyone here suggest a solution, e. g. some code to be added to functions.php?
I’m not a WP-developer myself but feel safe to make modifications to my child theme files.
Thank you and best Regards,
OliverThe page I need help with: [log in to see the link]
- The topic ‘Hide / block access to pending comments based on user-role’ is closed to new replies.