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的一個函式,用於檢查一個使用者是否在短時間內發表了太多的評論。如果使用者發表了太多的評論,該函式返回真,評論將不被允許。

在評論被標記為批准之前立即觸發。

允許檢查註釋氾濫。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action(
do_action(
do_action(

常見問題

FAQs
檢視更多 >