WordPress at Your Fingertips
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_2402', 10, 4 );
function action_function_name_2402( $comment_author_IP, $comment_author_email, $comment_date_gmt, $wp_error ){
	// action...
Comment author's IP address.
Comment author's email.
GMT date the comment was posted.
Whether to return a WP_Error object instead of executing wp_die() or die() if a comment flood is occurring.


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-includes/comment.php 761-767

Where in WP core the hook is used WordPress

wp-includes/default-filters.php 278
add_action( 'check_comment_flood', 'check_comment_flood_db', 10, 4 );