bp_activity_comment_posted_notification_skipped

Fires near the end of an activity comment posting, before the returning of the comment ID.

Description

do_action( 'bp_activity_comment_posted_notification_skipped', (int) $comment_id, (array) $r, (BP_Activity_Activity) $activity ); 

without sending a notification to the user

Parameters (3)

0. $comment_id (int)
ID of the newly posted activity comment.
1. $r (array)
Array of parsed comment arguments.
2. $activity (BP_Activity_Activity)
Activity item being commented on.

Usage

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

Defined (1)

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

/bp-activity/bp-activity-functions.php  
  1. do_action( 'bp_activity_comment_posted_notification_skipped', $comment_id, $r, $activity );