rtmedia_get_allowed_upload_types

To get list of allowed upload types in rtMedia.

Description

(array) rtmedia_get_allowed_upload_types(); 

Returns (array)


Usage

  1. if ( !function_exists( 'rtmedia_get_allowed_upload_types' ) ) { 
  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(); 
  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() { 
  2.  
  3. $allowed_types = rtmedia_get_allowed_types(); 
  4.  
  5. foreach ( $allowed_types as $type => $type_detail ) { 
  6. if ( ! ( function_exists( 'is_rtmedia_upload_' . $type . '_enabled' ) && call_user_func( 'is_rtmedia_upload_' . $type . '_enabled' ) ) ) { 
  7. unset( $allowed_types[ $type ] ); 
  8.  
  9. return $allowed_types; 
  10.