Core Function
View Source on Trac ↗ wp_throttle_comment_flood()
wp_throttle_comment_flood( mixed $block, mixed $time_lastcomment, mixed $time_newcomment ) Determines whether a comment should be blocked because of comment flood.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $block bool | Whether plugin has already blocked comment. Required |
| $time_lastcomment int | Timestamp for last comment. Required |
| $time_newcomment int | Timestamp for new comment. Required |
Return Value
(bool)
Whether comment should be blocked.
Function Information
Since Version
2.1.0
Source File
wp-includes/comment.php
Advertisement