Core Function
View Source on Trac ↗ wp_check_comment_flood()
wp_check_comment_flood( mixed $is_flood, mixed $ip, mixed $email, mixed $date, mixed $avoid_die = false ) Checks whether comment flooding is occurring.
Parameters 5 required
| Name / Type | Description |
|---|---|
| $is_flood bool | Is a comment flooding occurring? Required |
| $ip string | Comment author's IP address. Required |
| $email string | Comment author's email address. Required |
| $date string | MySQL time string. Required |
| bool | $avoid_die When true, a disallowed comment will result in the function returning without executing wp_die() or die(). Default false. Required |
Return Value
(bool)
Whether comment flooding is occurring.
Function Information
Since Version
4.7.0
Source File
wp-includes/comment.php
Advertisement