cover_group_name

The BuddyPress cover cover group name function.

Description

cover_group_name(); 

Usage

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

Defined (1)

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

/bp-cover-group.php  
  1. function cover_group_name() { 
  2. $group_id=bp_get_current_group_id(); 
  3. if(empty($group_id)) 
  4. return; 
  5. $group = groups_get_group( array( 'group_id' => $group_id ) ); 
  6. return $group->name; 
  7.