cover_group_description

The BuddyPress cover cover group description function.

Description

cover_group_description(); 

Usage

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

Defined (1)

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

/bp-cover-group.php  
  1. function cover_group_description() { 
  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 substr( $group->description, 0, 60 ); 
  7.