check_comment_flood

Fires immediately before a comment is marked approved.

Description

do_action( 'check_comment_flood', (unknown) $comment_author_ip, (unknown) $comment_author_email, (unknown) $comment_date_gmt ); 

Parameters (3)

0. $comment_author_ip (unknown)
The comment author ip.
1. $comment_author_email (unknown)
The comment author email.
2. $comment_date_gmt (unknown)
The comment date gmt.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'check_comment_flood', $comment_author_ip, $comment_author_email, $comment_date_gmt ); 
The following example is for adding a hook callback.
  1. // define the check_comment_flood callback 
  2. function action_check_comment_flood( $comment_author_ip, $comment_author_email, $comment_date_gmt ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'check_comment_flood', 'action_check_comment_flood', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'check_comment_flood', 'action_check_comment_flood', 10, 3 ); 

Defined (1)

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

/nxs_functions.php  
  1. do_action( 'check_comment_flood', $comment_author_IP, $comment_author_email, $comment_date_gmt );