Check if user has comment on current post
I need to create a condition to check if defined user ( no current user ) has comment on current post For that purpose, you can just use get_comments() like so: $post_id = get_the_ID(); // or just set a specific post ID $user_id = 444; // Get the total number of comments by the above … Read more