Filters the comment flood status.
Parameters
$boolbool- Whether a comment flood is occurring. Default false.
$time_lastcommentint- Timestamp of when the last comment was posted.
$time_newcommentint- Timestamp of when the new comment was posted.
Source
$flood_die = apply_filters( 'comment_flood_filter', false, $time_lastcomment, $time_newcomment );
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
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.
Source: https://wordpress.org/support/article/faq-working-with-wordpress/#how-do-i-prevent-comment-flooding
If you want to disable this function, enter the following code in the function.php file of your theme: