bp_get_avatar_to_crop_src

Return the relative file path to the avatar to crop.

Description

(string) bp_get_avatar_to_crop_src(); 

Returns (string)

Relative file path to the avatar.


Usage

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

Defined (1)

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

/bp-core/bp-core-template.php  
  1. function bp_get_avatar_to_crop_src() { 
  2. $bp =buddypress); 
  3. $src = isset( $bp->avatar_admin->image->dir ) 
  4. ? str_replace( WP_CONTENT_DIR, '', $bp->avatar_admin->image->dir ) 
  5. : ''; 
  6.  
  7. /** 
  8. * Filters the relative file path to the avatar to crop. 
  9. * @since 1.1.0 
  10. * @param string $src Relative file path for the avatar. 
  11. */