Answer the question
In order to leave comments, you need to log in
Restriction of comments, how to implement it easier?
Can anyone suggest the easiest way to restrict comments? Need:
Answer the question
In order to leave comments, you need to log in
Enable required registration to leave a comment
The VI has wp_allow_comment . Explore the hooks inside.
In one of the hooks, you check if this author had a comment.
Further. There is a pre_get_comments hook . In it you can check the current user. If this is the author of the publication, do nothing. Otherwise, return only the comments of the current user.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question