bp_groupblog_setup

The BP Groupblog bp groupblog setup function.

Description

bp_groupblog_setup(); 

Usage

  1. if ( !function_exists( 'bp_groupblog_setup' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-groupblog/bp-groupblog.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_groupblog_setup(); 
  7.  

Defined (1)

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

/bp-groupblog.php  
  1. function bp_groupblog_setup() { 
  2. global $wpdb; 
  3.  
  4. // Set up the array of potential defaults 
  5. $groupblog_blogdefaults = array( 
  6. 'theme' => 'bp-default|bp-groupblog',  
  7. 'page_template_layout' => 'magazine',  
  8. 'delete_blogroll_links' => '1',  
  9. 'default_cat_name' => 'Uncategorized',  
  10. 'default_link_cat' => 'Links',  
  11. 'delete_first_post' => 0,  
  12. 'delete_first_comment' => 0,  
  13. 'allowdashes'=>0,  
  14. 'allowunderscores' => 0,  
  15. 'allownumeric' => 0,  
  16. 'minlength' => 4,  
  17. 'redirectblog' => 0,  
  18. 'deep_group_integration' => 0,  
  19. 'pagetitle' => 'Blog' 
  20. ); 
  21. // Add a site option so that we'll know set up ran 
  22. add_site_option( 'bp_groupblog_blog_defaults_setup', 1 ); 
  23. add_site_option( 'bp_groupblog_blog_defaults_options', $groupblog_blogdefaults);