bp_groupblog_delete_meta

Bp_groupblog_delete_meta( $blog_id, $drop = false ).

Description

bp_groupblog_delete_meta( $blog_id, (bool) $drop = false ); 

Clean up groupmeta after a blog gets deleted.

Parameters (2)

0. $blog_id
The blog id.
1. $drop — Optional. (bool) => false
The drop.

Usage

  1. if ( !function_exists( 'bp_groupblog_delete_meta' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-groupblog/bp-groupblog.php'; 
  3.  
  4. // The blog id. 
  5. $blog_id = null; 
  6.  
  7. // The drop. 
  8. $drop = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bp_groupblog_delete_meta($blog_id, $drop); 
  12.  

Defined (1)

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

/bp-groupblog.php  
  1. function bp_groupblog_delete_meta( $blog_id, $drop = false ) { 
  2.  
  3. $group_id = get_groupblog_group_id( $blog_id ); 
  4.  
  5. groups_update_groupmeta ( $group_id, 'groupblog_enable_blog', '' ); 
  6. groups_update_groupmeta ( $group_id, 'groupblog_blog_id', '' ); 
  7. groups_update_groupmeta ( $group_id, 'groupblog_silent_add', '' ); 
  8.  
  9. groups_update_groupmeta ( $group_id, 'groupblog_default_admin_role', '' ); 
  10. groups_update_groupmeta ( $group_id, 'groupblog_default_mod_role', '' ); 
  11. groups_update_groupmeta ( $group_id, 'groupblog_default_member_role', '' ); 
  12.