Warning: This function has been deprecated. Use wp_media_upload_handler() instead.
media_upload_image() WordPress Function
The media_upload_image() function allows you to upload and insert an image into a post or page. You can also specify the image's alignment and size.
media_upload_image() #
Handles uploading an image.
Description
See also
Return
(null|string)
Source
File: wp-admin/includes/deprecated.php
function media_upload_image() {
_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. |