BP_AVATAR_ORIGINAL_MAX_FILESIZE

The BuddyPress BP AVATAR ORIGINAL MAX FILESIZE constant.

Value (string)

bp_attachments_get_max_upload_file_size( 'avatar' ) 

Usage

  1. if ( defined( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE' ) ) { 
  2.  
  3. // grab the value 
  4. $value = constant( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE' ); 
  5.  
  6. if ( !empty( $value ) ) { 
  7. // go forth and prosper... 
  8.  

Defined (1)

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

/bp-core/bp-core-avatars.php  
  1. define( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE', bp_attachments_get_max_upload_file_size( 'avatar' ) );