HTTP/2 301
server: nginx
date: Fri, 26 Dec 2025 11:20:44 GMT
content-type: text/html; charset=UTF-8
x-olaf: ⛄
vary: accept, content-type
x-redirect-by: WordPress
location: https://developer.wordpress.org/reference/hooks/comment_flood_filter/
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
HTTP/2 200
server: nginx
date: Fri, 26 Dec 2025 11:20:45 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
comment_flood_filter – Hook | Developer.WordPress.org
apply_filters( ‘comment_flood_filter’, bool $bool, int $time_lastcomment, int $time_newcomment )
Filters the comment flood status.
$boolboolWhether a comment flood is occurring. Default false.
$time_lastcommentintTimestamp of when the last comment was posted.
$time_newcommentintTimestamp of when the new comment was posted.
| 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: