wp_check_comment_flood


wp_check_comment_flood ( $is_flood, $ip, $email, $date, $avoid_die = false )

Parameters:
  • (bool) $is_flood Is a comment flooding occurring?
  • (string) $ip Comment author's IP address.
  • (string) $email Comment author's email address.
  • (string) $date MySQL time string.
  • (bool) $avoid_die When true, a disallowed comment will result in the function returning a WP_Error object, rather than executing wp_die(). Default false.
Returns:
  • (bool) Whether comment flooding is occurring.
Defined at:

Description

Checks whether comment flooding is occurring.

Won't run, if current user can manage options, so to not block administrators.

Related Functions

check_comment_flood_db, wp_throttle_comment_flood, check_comment, wp_check_post_lock, wp_set_comment_cookies

Top Google Results

User discussions

wpseek mobile