bp_avatar_refresh

The BuddyPress cover bp avatar refresh function.

Description

bp_avatar_refresh(); 

Usage

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

Defined (1)

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

/bp-cover.php  
  1. function bp_avatar_refresh() { 
  2. global $bp;  
  3. $avatar_url = bp_core_fetch_avatar( array( 'type' => 'full', 'html' => false, 'item_id' => $user_id ) );  
  4. $filter = " <div class='ava'> <img class='img-rounded profile-user-photo' id='user-profile-image' 
  5. src=".$avatar_url."></div>";  
  6. echo $filter;  
  7. die(); 
  8. }