check_comment_flood

动作钩子


参数
  • (string)
    $comment_author_ip
    Comment author’s IP address.
    Required:
  • (string)
    $comment_author_email
    Comment author’s email.
    Required:
  • (string)
    $comment_date_gmt
    GMT date the comment was posted.
    Required:
  • (bool)
    $wp_error
    Whether to return a WP_Error object instead of executing
    wp_die() or die() if a comment flood is occurring.
    Required:
定义位置
  • wp-includes/comment.php
    , line 735
引入
5.5.0
弃用

Fires immediately before a comment is marked approved.

Allows checking for comment flooding.

do_action(