media_upload_library()
Retrieves the legacy media library form in an iframe.
No Hooks.
Returns
String|null.
Usage
media_upload_library();
Changelog
| Since 2.5.0 | Introduced. |
media_upload_library() media upload library code WP 6.9.1
function media_upload_library() {
$errors = array();
if ( ! empty( $_POST ) ) {
$return = media_upload_form_handler();
if ( is_string( $return ) ) {
return $return;
}
if ( is_array( $return ) ) {
$errors = $return;
}
}
return wp_iframe( 'media_upload_library_form', $errors );
}