bp_get_new_group_enable_forum

The BuddyPress bp get new group enable forum function.

Description

(int) bp_get_new_group_enable_forum(); 

Returns (int)


Usage

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

Defined (1)

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

/bp-groups/bp-groups-template.php  
  1. function bp_get_new_group_enable_forum() { 
  2. $bp =buddypress); 
  3. $forum = isset( $bp->groups->current_group->enable_forum ) 
  4. ? $bp->groups->current_group->enable_forum 
  5. : false; 
  6.  
  7. /** 
  8. * Filters whether or not to enable forums for the new group. 
  9. * @since 1.1.0 
  10. * @param int $forum Whether or not to enable forums. 
  11. */