The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Filter Comments by Author Posts (2 posts)

  1. depiction
    Posted 7 years ago #

    In the admin area, under the comments section, is there a way to filter comments to only display comments made by posts from the logged in user?

    So userA has a multiple posts with 10 comments total and userB has multiple posts with 10 different comments. When each user visits the comments section, only the 10 comments relevant to that user should appear.

    For this particular blog, each editor is being asked to moderate comments that pertain to their own posts. Filtering comments displayed would be a big time saver.

  2. FameMonkey
    Posted 7 years ago #

    I really want to be able to do this as well.

    I have found how to do it by hacking the code in /wp-admin/includes/template.php. You wrap the loop:
    foreach ( $columns as $column_name => $column_display_name)
    (including the table row html) in an if:
    if ( current_user_can('edit_post', $post->ID) )

    but this approach is nasty! and will most likely be overwritten with every update :(

    I am new to plugins, and I can't find any hooks that are fired with edit-comments.php that would enable me to filter.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.