bool $bool, int $time_lastcomment, int $time_newcomment )
Filters the comment flood status.
Whether a comment flood is occurring. Default false.
Timestamp of when the last comment was posted.
Timestamp of when the new comment was posted.
View all references
$flood_die = apply_filters( 'comment_flood_filter', false, $time_lastcomment, $time_newcomment );
If you want to disable this function, enter the following code in the function.php file of your theme:
The default time required between multiple comments from the same user/IP is 15 seconds. If the user posts the second comment faster than 15 seconds after the first comment, the comment flood message is triggered.
Below is an example showing how to change the default time.