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

wp_throttle_comment_flood() WP 2.1.0

Whether a comment should be blocked because of comment flood.

Хуков нет.

Возвращает

true/false. Whether comment should be blocked.

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

wp_throttle_comment_flood( $block, $time_lastcomment, $time_newcomment );
$block(true/false) (обязательный)
Whether plugin has already blocked comment.
$time_lastcomment(число) (обязательный)
Timestamp for last comment.
$time_newcomment(число) (обязательный)
Timestamp for new comment.

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

С версии 2.1.0 Введена.

Код wp_throttle_comment_flood() WP 5.5.1

wp-includes/comment.php
<?php
function wp_throttle_comment_flood( $block, $time_lastcomment, $time_newcomment ) {
	if ( $block ) { // A plugin has already blocked... we'll let that decision stand.
		return $block;
	}
	if ( ( $time_newcomment - $time_lastcomment ) < 15 ) {
		return true;
	}
	return false;
}