bp_activity_sent_reply_to_update_notification

Fires at the point that notifications should be sent for activity comments.

Description

do_action( 'bp_activity_sent_reply_to_update_notification', (BP_Activity_Activity) $original_activity, (int) $comment_id, (int) $commenter_id, (array) $params ); 

Parameters (4)

0. $original_activity (BP_Activity_Activity)
The original activity.
1. $comment_id (int)
ID for the newly received comment.
2. $commenter_id (int)
ID of the user who made the comment.
3. $params (array)
Arguments used with the original activity comment.

Usage

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

Defined (1)

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

/bp-activity/bp-activity-functions.php  
  1. do_action( 'bp_activity_sent_reply_to_update_notification', $original_activity, $comment_id, $commenter_id, $params );