WordPress.org

Support

Support » Plugins and Hacks » How do I limit how often users can comment?

How do I limit how often users can comment?

  • 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);
  • The topic ‘How do I limit how often users can comment?’ is closed to new replies.
Skip to toolbar