bp_groupblog_setup_globals

Bp_groupblog_setup_globals().

Description

bp_groupblog_setup_globals(); 

Usage

  1. if ( !function_exists( 'bp_groupblog_setup_globals' ) ) { 
  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_globals(); 
  7.  

Defined (1)

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

/bp-groupblog.php  
  1. function bp_groupblog_setup_globals() { 
  2. global $bp, $wpdb; 
  3.  
  4. $bp->groupblog = new stdClass; 
  5. $bp->groupblog->image_base = WP_PLUGIN_DIR . '/bp-groupblog/groupblog/images'; 
  6. $bp->groupblog->slug = BP_GROUPBLOG_SLUG; 
  7. $bp->groupblog->default_admin_role = BP_GROUPBLOG_DEFAULT_ADMIN_ROLE; 
  8. $bp->groupblog->default_mod_role = BP_GROUPBLOG_DEFAULT_MOD_ROLE; 
  9. $bp->groupblog->default_member_role = BP_GROUPBLOG_DEFAULT_MEMBER_ROLE; 
  10.