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

Top ↑

See also


Top ↑

Return

(null|string)


Top ↑

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();
}


Top ↑

Changelog

Changelog
VersionDescription
3.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More