bp_blogs_delete_activity_for_site

Delete all 'blogs' activity items for a site when the site is deleted.

Description

bp_blogs_delete_activity_for_site( (int) $blog_id ); 

Parameters (1)

0. $blog_id (int)
The blog id.

Usage

  1. if ( !function_exists( 'bp_blogs_delete_activity_for_site' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-blogs/bp-blogs-activity.php'; 
  3.  
  4. // The blog id. 
  5. $blog_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_blogs_delete_activity_for_site($blog_id); 
  9.  

Defined (1)

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

/bp-blogs/bp-blogs-activity.php  
  1. function bp_blogs_delete_activity_for_site( $blog_id ) { 
  2. 'item_id' => $blog_id,  
  3. 'component' =>buddypress)->blogs->id,  
  4. 'type' => false 
  5. ) );