bp_core_avatar_folder_url

  • apply_filters( 'bp_core_avatar_folder_url', bp_core_avatar_url() . '/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-avatars.php :: Trac Source Line: 182
      		$html_width = ( 'thumb' == $type ) ? ' width="' . bp_core_avatar_thumb_width() . '"' : ' width="' . bp_core_avatar_full_width() . '"';
      
      	// Set avatar height
      	if ( $height )
      		$html_height = " height='{$height}'";
      	else
      		$html_height = ( 'thumb' == $type ) ? ' height="' . bp_core_avatar_thumb_height() . '"' : ' height="' . bp_core_avatar_full_height() . '"';
      
      	// Set avatar URL and DIR based on prepopulated constants
      	$avatar_folder_url = apply_filters( 'bp_core_avatar_folder_url', bp_core_avatar_url() . '/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir );
      	$avatar_folder_dir = apply_filters( 'bp_core_avatar_folder_dir', bp_core_avatar_upload_path() . '/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir );
      
      	/****
      	 * Look for uploaded avatar first. Use it if it exists.
      	 * Set the file names to search for, to select the full size
      	 * or thumbnail image.
      	 */
      	$avatar_size              = ( 'full' == $type ) ? '-bpfull' : '-bpthumb';
      	$legacy_user_avatar_name  = ( 'full' == $type ) ? '-avatar2' : '-avatar1';
      	$legacy_group_avatar_name = ( 'full' == $type ) ? '-groupavatar-full' : '-groupavatar-thumb';
      

Comments are closed.