WordPress.org

Ready to get started?Download WordPress

Forums

How do I limit how often users can comment? (1 post)

  1. jgadsby
    Member
    Posted 1 year ago #

    See the title. I'm finding the 15-second limit too lax. I've tried making a plugin with this code in, but it doesn't seem to do anything...

    function dam_the_flood( $dam_it, $time_last, $time_new ) {
    
    	if ( ($time_new - $time_last) < 60 ) // time interval is 60
    		return true;                  // seconds
    	return false;
    
    add_filter('comment_flood_filter', 'dam_the_flood', 10, 3);

Topic Closed

This topic has been closed to new replies.

About this Topic