bp_blogs_remove_post

Fires after removal of a blog post activity item from the activity stream.

Description

do_action( 'bp_blogs_remove_post', (int) $blog_id, (int) $post_id, (int) $user_id ); 

Parameters (3)

0. $blog_id (int)
ID of the blog associated with the post that was removed.
1. $post_id (int)
ID of the post that was removed.
2. $user_id (int)
ID of the user having the blog removed for.

Usage

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

Defined (1)

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

/bp-blogs/bp-blogs-activity.php  
  1. do_action( 'bp_blogs_remove_post', $blog_id, $post_id, $user_id );