1

Wordpress has a default option that checks if user has an approved comment before.

How do i change this number to a higher limit so that users must have more than one approved comment to publish future comments without approval.

Thanks,

0

You could try the pre_comment_approved filter to modify the approval status for the $approved = 1 case, excluding the post author and users with moderate_comments capability.

Then set it to 0 if the commenter has fewer than 2 approved comments.

Note that the approved value can also be 'spam' or 'trash'.

  • Hi, birgire thanks for the answer. Would you mind explaining with a code snippet please? – Burak Birer Jun 13 '17 at 13:12
  • The code in wp_allow_comment() and check_comment() is helpful to see what kind of queries you could use. – birgire Jun 13 '17 at 21:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.