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_is_comment_floodcomment_closedcomment_flood_filterwp_check_comment_disallowed_listget_comment_id
相关方法
check_comment_flood_dbwp_check_comment_floodcheck_commentwp_throttle_comment_floodwp_check_comment_disallowed_listget_comment_id
引入
5.5.0
弃用
-

check_comment_flood – 这是WordPress的一个函数,用于检查一个用户是否在短时间内发表了太多的评论。如果用户发表了太多的评论,该函数返回真,评论将不被允许。

在评论被标记为批准之前立即触发。

允许检查注释泛滥。

do_action(

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-06 20:33:26

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

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

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