From the users section, I can see a link to their posts, but not their comments. When I go to comments, there doesn’t seem to be a straightforward way to filter only comments by a specific user. How to do it? (I’m sure such basic feature must be somewhere, I just can’t find it.)
Leave a Reply
You must be logged in to post a comment.
Afaik, there’s no straight forward way for this.
You’d have to extend the
WP_List_Table
and add an extra column. This would be an example function:The above â function gives you back all DB rows for comments by the user you specified by her/his ID.
You then can go and list for e.g. all posts in a
foreach
loop:The actual problem is that there’s no admin screen where you can list comments by user. So I’d say it’d be easier to do this with a link and a page-template where you hide the contents behind
current_user_can( 'manage_options' );
.