bp_groupblog_init

Loads BuddyPress Groupblog only when BP is active.

Description

bp_groupblog_init(); 

Usage

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

Defined (1)

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

/loader.php  
  1. function bp_groupblog_init() { 
  2. // BP Groupblog requires multisite 
  3. if ( !is_multisite() ) 
  4. return; 
  5.  
  6. if ( !bp_is_active( 'groups' ) ) 
  7. return; 
  8.  
  9. require_once( dirname( __FILE__ ) . '/bp-groupblog.php' );