bp_activity_akismet_mark_as_spam

Fires after marking an activity item has been marked as spam.

Description

do_action( 'bp_activity_akismet_mark_as_spam', (BP_Activity_Activity) $activity, (string) $source ); 

Parameters (2)

0. $activity (BP_Activity_Activity)
Activity object being marked as spam.
1. $source (string)
Source of the whom marked as spam. Either by_a_person (e.g. a person has manually marked the activity as spam) or by_akismet..

Usage

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

Defined (1)

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

/bp-activity/classes/class-bp-akismet.php  
  1. do_action( 'bp_activity_akismet_mark_as_spam', $activity, $source );