bp_activity_mark_as_ham

Fires at the end of the process to mark an activity item as ham.

Description

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

Parameters (2)

0. $activity (BP_Activity_Activity)
Activity item being marked as ham.
1. $source (string)
Source of determination of ham status. For example by_a_person or by_akismet..

Usage

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

Defined (1)

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

/bp-activity/bp-activity-functions.php  
  1. do_action( 'bp_activity_mark_as_ham', $activity, $source );