wp_is_comment_flood

过滤钩子
参数
  • (bool) $is_flood Is a comment flooding occurring? Default false.
    Required:
  • (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:
定义位置
相关勾子
check_comment_floodwp_insert_commentwp_list_comments_argswp_comment_replycomment_flood_filter
相关方法
wp_check_comment_floodwp_throttle_comment_floodis_comment_feedwp_list_commentswp_set_comment_cookieswp_insert_comment
引入
5.5.0
弃用
-

wp_is_comment_flood:这是 WordPress 内置的一个函数,用于检查评论是否过多: 该函数可以防止一个用户在短时间内发布过多评论,以防止评论泛滥。

过滤一个评论是否是评论泛滥的一部分。

默认检查是wp_check_comment_flood()。请参阅check_comment_flood_db()。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$is_flood = apply_filters(
$is_flood = apply_filters(
$is_flood = apply_filters(

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-04 18:32:33

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: