contact_form_akismet

Fires after a comment has been marked by Akismet.

Description

do_action( 'contact_form_akismet', (string) $spam, (array) $akismet_values ); 

Typically this means the comment is spam.

Parameters (2)

0. $spam (string) => 'spam'
Usually is spam,, otherwise ham..
1. $akismet_values (array)
From _feedback_akismet_values in comment meta

Usage

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

Defined (5)

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

/modules/contact-form/admin.php  
  1. do_action( 'contact_form_akismet', 'spam', $akismet_values ); 
  1. do_action( 'contact_form_akismet', 'spam', $akismet_values ); 
  1. do_action( 'contact_form_akismet', 'ham', $akismet_values ); 
  1. do_action( 'contact_form_akismet', 'spam', $akismet_values ); 
/modules/contact-form/grunion-contact-form.php  
  1. add_action( 'contact_form_akismet', array( $this, 'akismet_submit' ), 10, 2 );