Warning: This function has been deprecated. Use wp_media_upload_handler() instead.
media_upload_file() WordPress Function
media_upload_file() is a function used to upload files to a WordPress site. This function is typically used by plugins and themes to upload files to a WordPress site.
media_upload_file() #
Handles uploading a generic file.
Description
See also
Return
(null|string)
Source
File: wp-admin/includes/deprecated.php
function media_upload_file() { _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' ); return wp_media_upload_handler(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |