bp_blogs_remove_comment

Fires after a blog comment activity item was removed from activity stream.

Description

do_action( 'bp_blogs_remove_comment', (int) $get_current_blog_id, (int) $comment_id, (int) $bp_loggedin_user_id ); 

Parameters (3)

0. $get_current_blog_id (int) => get_current_blog_id()
ID for the blog associated with the removed comment.
1. $comment_id (int)
ID of the comment being removed.
2. $bp_loggedin_user_id (int) => bp_loggedin_user_id()
ID of the current logged in user.

Usage

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

Defined (1)

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

/bp-blogs/bp-blogs-functions.php  
  1. do_action( 'bp_blogs_remove_comment', get_current_blog_id(), $comment_id, bp_loggedin_user_id() );