bp_blogs_remove_blog

Remove the "blog created" item from the BP blogs tracker and activity stream.

Description

bp_blogs_remove_blog( (int) $blog_id ); 

Parameters (1)

0. $blog_id (int)
ID of the blog being removed.

Usage

  1. if ( !function_exists( 'bp_blogs_remove_blog' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-blogs/bp-blogs-functions.php'; 
  3.  
  4. // ID of the blog being removed. 
  5. $blog_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_blogs_remove_blog($blog_id); 
  9.  

Defined (1)

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

/bp-blogs/bp-blogs-functions.php  
  1. function bp_blogs_remove_blog( $blog_id ) { 
  2.  
  3. $blog_id = (int) $blog_id; 
  4.  
  5. /** 
  6. * Fires before a "blog created" item is removed from blogs 
  7. * tracker and activity stream. 
  8. * @since 1.5.0 
  9. * @param int $blog_id ID of the blog having its item removed. 
  10. */ 
  11.  
  12. BP_Blogs_Blog::delete_blog_for_all( $blog_id ); 
  13.  
  14. /** 
  15. * Fires after a "blog created" item has been removed from blogs 
  16. * tracker and activity stream. 
  17. * @since 1.0.0 
  18. * @param int $blog_id ID of the blog who had its item removed. 
  19. */