do_action( 'check_comment_flood', string $comment_author_ip, string $comment_author_email, string $comment_date_gmt, bool $wp_error )

Fires immediately before a comment is marked approved.


Description

Allows checking for comment flooding.


Parameters

$comment_author_ip

Comment author's IP address.

$comment_author_email

Comment author's email.

$comment_date_gmt

GMT date the comment was posted.

$wp_error

Whether to return a WP_Error object instead of executing wp_die() or die() if a comment flood is occurring.


Source

File: wp-includes/comment.php

View on GitHub



Changelog

Changelog
Version Description
5.5.0 The $avoid_die parameter was renamed to $wp_error.
4.7.0 The $avoid_die parameter was added.
2.3.0 Introduced.