WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
событие не описано

check_comment_flood хук-событие . 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_9344', 10, 4 );
function action_function_name_9344( $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.

Список изменений

С версии 2.3.0 Введена.
С версии 4.7.0 The $avoid_die parameter was added.
С версии 5.5.0 The $avoid_die parameter was renamed to $wp_error.

Где вызывается хук

wp-includes/comment.php 756-762

Где используется хук в ядре WordPress

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