comment_flood_filter

过滤钩子
apply_filters( 'comment_flood_filter', false, $time_lastcomment, $time_newcomment )
参数
  • (bool) $bool Whether a comment flood is occurring. Default false.
    Required:
  • (int) $time_lastcomment Timestamp of when the last comment was posted.
    Required:
  • (int) $time_newcomment Timestamp of when the new comment was posted.
    Required:
定义位置
相关勾子
comment_flood_triggercomment_form_aftercomment_flood_messagecomment_form_fieldscomment_form_logged_in_after
相关方法
comment_footer_diecomment_id_fieldscomment_formcomment_datecheck_comment_flood_dbcurrent_filter
引入
2.1.0
弃用
-

comment_flood_filter: 这是一个过滤钩子,在进行评论泛滥检查时被执行。该钩子被传递一个布尔值,表示评论泛滥检查是否失败,并且它被期望返回一个布尔值。这个钩子的目的是允许插件或主题修改评论泛滥检查的结果。

过滤评论的泛滥状态。

$flood_die = apply_filters( 'comment_flood_filter', false, $time_lastcomment, $time_newcomment );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-14 16:36:35

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

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

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