bp_cover_group_get_image_scr

The BuddyPress cover bp cover group get image scr function.

Description

bp_cover_group_get_image_scr(); 

Usage

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

Defined (1)

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

/bp-cover-group.php  
  1. function bp_cover_group_get_image_scr() { 
  2. global $bp; 
  3. if(empty($group_id)) 
  4. $group_id=$bp->groups->current_group->id;  
  5. $image=groups_get_groupmeta($group_id, 'bp_cover_group', true);  
  6. $filter .= "<img class='bp-cover' src='$image'/>";  
  7. return $filter;