On this page
media_upload_file(): null|string
This function has been deprecated. Use wp_media_upload_handler() instead.
Handles uploading a generic file.
Description
See also
Return
null|string
Source
File: wp-admin/includes/deprecated.php. View all references
function media_upload_file() {
_deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' );
return wp_media_upload_handler();
}
Related
Uses
| Uses | Description |
|---|---|
| wp_media_upload_handler() wp-admin/includes/media.php | Handles the process of uploading media. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
| Version | Description |
|---|---|
| 3.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/media_upload_file