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
檢視更多 >