In the Comments page (/wp-admin/edit-comments.php
), every logged in user can see all the site comments.
I’d like the users to see only his/her own comments and the comments that are left to his/her posts.
How can I filter this?
In the Comments page (/wp-admin/edit-comments.php
), every logged in user can see all the site comments.
I’d like the users to see only his/her own comments and the comments that are left to his/her posts.
How can I filter this?
You must be logged in to post a comment.
Either of these 3 will help you:
Additionally you can use
global $pagenow
to make sure that the code runs only on this page.Sorry I’m kinda unwell today, so couldn’t write down an example! 😉
Edit: