comment_flood_trigger

動作鉤子
do_action( 'comment_flood_trigger', $time_lastcomment, $time_newcomment )
引數
  • (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_filtercomment_flood_messagecomment_duplicate_triggercomment_form_aftercomment_form
相關方法
comment_form_titlecomment_footer_diecomment_formcomment_timecomment_datecheck_comment_flood_db
引入
1.5.0
棄用
-

comment_flood_trigger – 這個函式檢查評論洪水保護是否被觸發,並返回真或假: 當一個使用者在一定時間內提交了太多的評論時,就會觸發洪水保護。

在觸發評論氾濫資訊之前啟動。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'comment_flood_trigger', $time_lastcomment, $time_newcomment );
do_action( 'comment_flood_trigger', $time_lastcomment, $time_newcomment );
do_action( 'comment_flood_trigger', $time_lastcomment, $time_newcomment );

常見問題

FAQs
檢視更多 >