Notifications
Clear all

Script Anti Spamming Code Not Working

5 Posts
2 Users
0 Reactions
275 Views
forummember
Posts: 124
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: 124
Topic starter
(@forummember)
Estimable Member
Joined: 2 years ago

Can anyone advise please. Thanks

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

Support Team
Posts: 4900

@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: 124

@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: 7 years ago

Support Team
Posts: 4900

@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