bp_core_get_allowed_avatar_mimes

Get allowed avatar mime types.

Description

(array) bp_core_get_allowed_avatar_mimes(); 

Returns (array)


Usage

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

Defined (1)

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

/bp-core/bp-core-avatars.php  
  1. function bp_core_get_allowed_avatar_mimes() { 
  2. $allowed_types = bp_core_get_allowed_avatar_types(); 
  3.  
  4. return bp_attachments_get_allowed_mimes( 'avatar', $allowed_types );