wp_is_comment_flood

Advertisement

Summery Summery

Filters whether a comment is part of a comment flood.

Syntax Syntax

apply_filters( 'wp_is_comment_flood', bool $is_flood, string $comment_author_IP, string $comment_author_email, string $comment_date_gmt, bool $avoid_die )

Description Description

The default check is wp_check_comment_flood(). See check_comment_flood_db().

Parameters Parameters

$is_flood

Is a comment flooding occurring? Default false.

$comment_author_IP

Comment author's IP address.

$comment_author_email

Comment author's email.

$comment_date_gmt

GMT date the comment was posted.

$avoid_die

Whether to prevent executing wp_die() or die() if a comment flood is occurring.

Source Source

File: wp-includes/comment.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply