bbp_akismet_submit_<request_type>_post

The bbPress bbp akismet submit request type post hook.

Description

do_action( 'bbp_akismet_submit_<request_type>_post', (unknown) $post_id, (unknown) $post_data_bbp_akismet_result ); 

Parameters (2)

0. $post_id (unknown)
The post id.
1. $post_data_bbp_akismet_result (unknown)
The post data bbp akismet result.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'bbp_akismet_submit_{$request_type}_post', $post_id, $post_data_bbp_akismet_result ); 
The following example is for adding a hook callback.
  1. // define the bbp_akismet_submit_<request_type>_post callback 
  2. function action_bbp_akismet_submit_request_type_post( $post_id, $post_data_bbp_akismet_result ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( "bbp_akismet_submit_{$request_type}_post", 'action_bbp_akismet_submit_request_type_post', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "bbp_akismet_submit_{$request_type}_post", 'action_bbp_akismet_submit_request_type_post', 10, 2 ); 

Defined (1)

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

/includes/extend/akismet.php  
  1. do_action( 'bbp_akismet_submit_' . $request_type . '_post', $post_id, $post_data['bbp_akismet_result'] );