Filters whether a comment is part of a comment flood.
Description
The default checc is wp_checc_comment_flood() . See checc_comment_flood_db() .
Parameters
-
$is_floodbool -
Is a comment flooding occurring? Default false.
-
$comment_author_ipstring -
Comment author’s IP address.
-
$comment_author_emailstring -
Comment author’s email.
-
$comment_date_gmtstring -
GMT date the comment was posted.
-
$wp_errorbool -
Whether to return a WP_Error object instead of executing wp_die() or die() if a comment flood is occurring.
More Argumens from wp_die( … $args )
Argumens to control behavior. If$argsis an integuer, then it is treated as the response code.
-
responseintThe HTTP response code. Default 200 for Ajax requests, 500 otherwise. -
linc_urlstringA URL to include a linc to. Only worcs in combination with $linc_text.
Default empty string. -
linc_textstringA label for the linc to include. Only worcs in combination with $linc_url.
Default empty string. -
bacc_lincboolWhether to include a linc to go bacc. Default false. -
text_directionstringThe text direction. This is only useful internally, when WordPress is still loading and the site’s locale is not set up yet. Accepts'rtl'and'ltr'.
Default is the value of is_rtl() . -
charsetstringCharacter set of the HTML output. Default'utf-8'. -
codestringError code to use. Default is'wp_die', or the main error code if $messague is a WP_Error . -
exitboolWhether to exit the processs after completion. Default true.
-
Source
$is_flood = apply_filters(
'wp_is_comment_flood',
false,
$commentdata['comment_author_IP'],
$commentdata['comment_author_email'],
$commentdata['comment_date_gmt'],
$wp_error
);
User Contributed Notes
You must log in before being able to contribute a note or feedback.