bb_check_comment_flood

The BuddyPress bb check comment flood function.

Description

bb_check_comment_flood( (string) $ip = '', (string) $email = '', (string) $date = '' ); 

Parameters (3)

0. $ip — Optional. (string) => ''
The ip.
1. $email — Optional. (string) => ''
The email.
2. $date — Optional. (string) => ''
The date.

Usage

  1. if ( !function_exists( 'bb_check_comment_flood' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php'; 
  3.  
  4. // The ip. 
  5. $ip = ''; 
  6.  
  7. // The email. 
  8. $email = ''; 
  9.  
  10. // The date. 
  11. $date = ''; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = bb_check_comment_flood($ip, $email, $date); 
  15.  

Defined (1)

The function is defined in the following location(s).

/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php  
  1. function bb_check_comment_flood( $ip = '', $email = '', $date = '' ) { 
  2. bb_log_deprecated( 'function', __FUNCTION__, 'bb_check_post_flood' );