wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

[Solved] Remove the restriction for identical comments


gels13
Posts: 6
Topic starter
(@gels13)
Active Member
Joined: 8 months ago

I would like to remove the restriction for 2 identical comments, as well as the restriction that comments are made too quickly, this prevents people from expressing opinions in the same way, there are people who are used to pressing enter for a new line, this is also a restriction for people who want to comment.
How can I remove these restrictions?
The subdomain on which I am testing wpDiscuz is not final yet, I can only link you to the page on which I am testing.

2 Replies
Asti
Posts: 4894
 Asti
Support
(@asti)
Support member
Joined: 5 years ago

@gels13,

Both restrictions are made by the WordPress side not wpDiscuz, so you can use the WordPress hooks:

The first restriction can be removed using this one: 

add_filter('duplicate_comment_id', '__return_false');

In this article, you can find a way to disable the WordPress comment flood prevention:

https://frique.me/blog/disabling-wordpress-comment-flood-prevention/

Put both codes in the active theme functions.php file.

This article should be helpful for you: https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/

1 Reply
gels13
(@gels13)
Joined: 8 months ago

Active Member
Posts: 6

@asti 

Thank you, you helped me a lot, despite my ignorance! 🧡

 

 

Share: