Description
Fires immediately before a comment is marked approved. Allows checking for comment flooding.
Occurrences
Filename | Line Number |
---|---|
wp-includes/comment.php | 736 |
Parameters
Type | Name | Description |
---|---|---|
string | $comment_author_ip | Comment author's IP address. |
string | $comment_author_email | Comment author's email. |
string | $comment_date_gmt | GMT date the comment was posted. |
bool | $wp_error | Whether to return a WP_Error object instead of executing wp_die() or die() if a comment flood is occurring. |
PHP Doc
/**
* Fires immediately before a comment is marked approved.
*
* Allows checking for comment flooding.
*
* @since 2.3.0
* @since 4.7.0 The `$avoid_die` parameter was added.
* @since 5.5.0 The `$avoid_die` parameter was renamed to `$wp_error`.
*
* @param string $comment_author_ip Comment author's IP address.
* @param string $comment_author_email Comment author's email.
* @param string $comment_date_gmt GMT date the comment was posted.
* @param bool $wp_error Whether to return a WP_Error object instead of executing
* wp_die() or die() if a comment flood is occurring.
*/