media_upload_library

Retrieves the legacy media library form in an iframe.

Description

(string|null) media_upload_library(); 

Returns (string|null)


Usage

  1. if ( !function_exists( 'media_upload_library' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/media.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = media_upload_library(); 
  7.  

Defined (1)

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

/wp-admin/includes/media.php  
  1. function media_upload_library() { 
  2. $errors = array(); 
  3. if ( !empty($_POST) ) { 
  4.  
  5. if ( is_string($return) ) 
  6. return $return; 
  7. if ( is_array($return) ) 
  8. $errors = $return; 
  9.  
  10. return wp_iframe( 'media_upload_library_form', $errors );