On this page
apply_filters( 'comment_flood_filter', bool $bool, int $time_lastcomment, int $time_newcomment )
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
File: wp-includes/comment.php. View all references
$flood_die = apply_filters( 'comment_flood_filter', false, $time_lastcomment, $time_newcomment );
Related
Used By
| Used By | Description |
|---|---|
| wp_check_comment_flood() wp-includes/comment.php | Checks whether comment flooding is occurring. |
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_flood_filter