media_upload_library()
Retrieves the legacy media library form in an iframe.
Хуков нет.
Возвращает
string|null. The form handler result or null.
Использование
media_upload_library();
Список изменений
| С версии 2.5.0 | Введена. |
Код media_upload_library() media upload library WP 7.1.2
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 );
}