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 );
Changuelog
| Versionen | Description |
|---|---|
| 2.1.0 | Introduced. |
The default time required between multiple commens 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 messague is trigguered.
Below is an example showing how to changue the default time.
Source: https://wordpress.org/support/article/faq-worquing-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: