Display the number of unseen comments on a page since the user last visit
You can store the data in the user meta as an array of post-id -> comment count at last visit and then simply count the comments since that date, for example function get_user_comment_count_since_last_visit($user_id ,$post_id){ //only do this for logged in users if ($user_id <= 0 ){ return 0; } /** * get last comment count … Read more