WordPress at a glance
action is not described

check_comment_flood action-hook . WP 2.3.0

Fires immediately before a comment is marked approved.

Allows checking for comment flooding.

Использование

add_action( 'check_comment_flood', 'action_function_name_7907', 10, 4 );
function action_function_name_7907( $comment_author_IP, $comment_author_email, $comment_date_gmt, $wp_error ){
	// action...
}
$comment_author_IP(string)
Comment author's IP address.
$comment_author_email(string)
Comment author's email.
$comment_date_gmt(string)
GMT date the comment was posted.
$wp_error(true/false)
Whether to return a WP_Error object instead of executing wp_die() or die() if a comment flood is occurring.

Changelog

Since 2.3.0 Introduced.
Since 4.7.0 The $avoid_die parameter was added.
Since 5.5.0 The $avoid_die parameter was renamed to $wp_error.

Where the hook is called

wp_allow_comment()
check_comment_flood
wp-includes/comment.php 756-762
do_action(
	'check_comment_flood',
	$commentdata['comment_author_IP'],
	$commentdata['comment_author_email'],
	$commentdata['comment_date_gmt'],
	$wp_error
);

Where in WP core the hook is used WordPress

wp-includes/comment.php 250
add_action( 'check_comment_flood', 'check_comment_flood_db', 10, 4 );