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,
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'
.
wp_allow_comment()
and check_comment()
is helpful to see what kind of queries you could use.