wphooks.info - comment_flood_filter

comment_flood_filter

(trunk - 5.0-alpha-42719)

The hook occurs in the following file:

wp-includes/comment.php:
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
		$time_newcomment  = mysql2date( 'U', $date, false );
		/**
		 * Filters the comment flood status.
		 *
		 * @since 2.1.0
		 *
		 * @param bool $bool             Whether a comment flood is occurring. Default false.
		 * @param int  $time_lastcomment Timestamp of when the last comment was posted.
		 * @param int  $time_newcomment  Timestamp of when the new comment was posted.
		 */
		$flood_die = apply_filters( 'comment_flood_filter', false, $time_lastcomment, $time_newcomment );
		if ( $flood_die ) {
			/**
			 * Fires before the comment flood message is triggered.
			 *
			 * @since 1.5.0
			 *
			 * @param int $time_lastcomment Timestamp of when the last comment was posted.
			 * @param int $time_newcomment  Timestamp of when the new comment was posted.
			 */