The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Remove the restrict...
 
Share:
Notifications
Clear all

[Solved] Remove the restriction for identical comments

3 Posts
2 Users
0 Reactions
660 Views
Posts: 6
Topic starter
(@gels13)
Active Member
Joined: 3 years 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: 7664
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 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)
Joined: 3 years ago

Active Member
Posts: 6

@asti 

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

 

 

Share: