1. 首页
  2. WordPress钩子手册

check_comment_flood

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

动作钩子::在评论被标记为批准之前立即触发。
Action Hook: Fires immediately before a comment is marked approved.

目录锚点:#说明#参数#源码


说明(Description)

允许检查评论泛滥。


参数(Parameters)

参数 类型 说明
$comment_author_IP (string) 评论作者的IP地址。
$comment_author_email (string) 评论作者的电子邮件。
$comment_date_gmt (string) 发表评论的GMT日期。
$avoid_die (bool) 如果发生注释溢出,是阻止执行wp_die()还是die()。

源码(Source)


更新版本 源码位置 使用 被使用
4.7.0 wp-includes/comment.php:737 1 0

check_comment_flood 为WP2原创文章,链接:https://www.wp2.cn/hook/check_comment_flood/