So I have this for a function to filter out comments by the current user that is logged in ID and per page:
function wps_get_comment_list_by_user($clauses) {
global $user_ID, $wpdb;
$clauses['join'] = ", wp_posts";
$where = ‘WHERE user_id = ‘ . get_current_user_id() . ‘ AND comment_approved <> “trash” AND comment_post_ID = ‘ . get_the_id();
return $clauses;
};
add_filter('pre_get_comments', 'wps_get_comment_list_by_user');
Are we close to getting it so that comments on each page only show to the user logged in that they posted themselves?