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.


Top ↑

Source

File: wp-includes/comment.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More