groups_get_current_group

The BP Groupblog groups get current group function.

Description

groups_get_current_group(); 

Usage

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

Defined (1)

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

/1.5-abstraction.php  
  1. function groups_get_current_group() { 
  2. global $bp; 
  3.  
  4. return apply_filters( 'groups_get_current_group', !empty( $bp->groups->current_group ) ? $bp->groups->current_group : new stdClass );