check_comment_flood

Advertisement

Summery Summery

Fires immediately before a comment is marked approved.

Syntax Syntax

do_action( 'check_comment_flood', string $comment_author_IP, string $comment_author_email, string $comment_date_gmt, bool $avoid_die )

Description Description

Allows checking for comment flooding.

Parameters Parameters

$comment_author_IP

(string) Comment author's IP address.

$comment_author_email

(string) Comment author's email.

$comment_date_gmt

(string) GMT date the comment was posted.

$avoid_die

(bool) 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 The $avoid_die parameter was added.
2.3.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.