comment_flood_filter WordPress Filter Hook
The comment_flood_filter Wordpress hook is used to prevent comment flooding. It checks to see if a user has made too many comments in a short period of time, and if so, it throttles their comment activity. This helps to keep the comments section of a Wordpress site from being overwhelmed by a single user's comments.
apply_filters( 'comment_flood_filter', bool $bool , int $time_lastcomment , int $time_newcomment ) #
Filters the comment flood status.
Parameters
- $bool
(bool)Whether a comment flood is occurring. Default false.
- $time_lastcomment
(int)Timestamp of when the last comment was posted.
- $time_newcomment
(int)Timestamp of when the new comment was posted.
Source
File: wp-includes/comment.php
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |