I'm trying to find a way to have a conditional snippet in
//do something happens if the current user has not commented on the current post.
I'm hopeless at coding but I'm guessing I need some of this...
is_user_logged_in() $user_id = get_current_user_id()
The comment part baffles me... would this help? https://wordpress.stackexchange.com/questions/137799/how-to-limit-users-to-one-comment-per-post