bp_activity_sent_mention_email

Fires after the sending of an @mention email notification.

Description

do_action( 'bp_activity_sent_mention_email', (BP_Activity_Activity) $activity, (string) $var, (string) $var, (string) $var, (int) $receiver_user_id ); 

Parameters (5)

0. $activity (BP_Activity_Activity)
Activity Item object.
1. $var (string) => ''
Removed in 2.5; now an empty string.
2. $var (string) => ''
Removed in 2.5; now an empty string.
3. $var (string) => ''
Removed in 2.5; now an empty string.
4. $receiver_user_id (int)
The ID of the user who is receiving the update.

Usage

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

Defined (1)

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

/bp-activity/bp-activity-functions.php  
  1. do_action( 'bp_activity_sent_mention_email', $activity, '', '', '', $receiver_user_id );