rtmedia_get_allowed_upload_types_array

To get list of allowed upload type name in rtMedia.

Description

(array) rtmedia_get_allowed_upload_types_array(); 

Returns (array)


Usage

  1. if ( !function_exists( 'rtmedia_get_allowed_upload_types_array' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'rtmedia-for-wordpress-buddypress-and-bbpress/app/main/controllers/template/rtmedia-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = rtmedia_get_allowed_upload_types_array(); 
  7.  

Defined (1)

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

/app/main/controllers/template/rtmedia-functions.php  
  1. function rtmedia_get_allowed_upload_types_array() { 
  2.  
  3. $allowed_types = rtmedia_get_allowed_upload_types(); 
  4. $types = array_keys( $allowed_types ); 
  5.  
  6. return $types; 
  7.