Notifications
Clear all

Script Anti Spamming Code Not Working

5 Posts
2 Users
0 Reactions
118 Views
forummember
Posts: 122
Topic starter
(@forummember)
Estimable Member
Joined: 2 years ago

Hi, the below code is not working anymore.

 

add_filter( 'wpforo_usergroup_get_flood_interval', function(){ return 15; /* seconds */ } );
4 Replies
forummember
Posts: 122
Topic starter
(@forummember)
Estimable Member
Joined: 2 years ago

Can anyone advise please. Thanks

Reply
3 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 6 years ago

Support Team
Posts: 4408

@forummember 

The code is functioning properly. If you're encountering issues, they may be related to how and where you've implemented it. For instance, if you've used another plugin or added it directly to the functions.php file, etc.

The code above doesnot allow to post a replies quickly In your situation, there's a restriction allowing posting a topic/post only after 15 seconds.

Reply
forummember
(@forummember)
Joined: 2 years ago

Estimable Member
Posts: 122

@sofy I put it in Code Snippet and it is working before but upon checking again it's not working anymore and the people is spamming my forum.

Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 6 years ago

Support Team
Posts: 4408

@forummember 

It's possible that the duration extends beyond 15 seconds.

Please check out this FAQ; it might be helpful for you: https://wpforo.com/community/faq/how-to-stop-spam/

Reply