Restrict the number of comments a user can post.
add_action('preprocess_comment', 'codebykp_limit_comments_per_user');
function codebykp_limit_comments_per_user($commentdata) {
$user_id = get_current_user_id();
if ($user_id) {
$comments = get_comments(array('user_id' => $user_id));
if (count($comments) >= 5) { // Set limit
wp_die('You have reached the limit of comments you can post.');
}
}
return $commentdata;
}