bp_activity_post_type_remove_comment

The WordPress Core bp activity post type remove comment hook.

Description

add_action( 'bp_activity_post_type_remove_comment', (string) $bp_blogs_post_type_remove_comment, (int) $int, (int) $int ); 

Parameters (3)

0. $bp_blogs_post_type_remove_comment (string) => 'bp_blogs_post_type_remove_comment'
The bp blogs post type remove comment.
1. $int (int) => 10
The int.
2. $int (int) => 4
The int.

Usage

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

Defined (2)

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

/bp-blogs/bp-blogs-functions.php  
  1. add_action( 'bp_activity_post_type_remove_comment', 'bp_blogs_post_type_remove_comment', 10, 4 ); 
/bp-activity/bp-activity-functions.php  
  1. do_action( 'bp_activity_post_type_remove_comment', $deleted, $comment_id, $activity_post_object, $activity_comment_object->action_id );