Warning: This function has been deprecated. Use wp_media_upload_handler() instead.

media_upload_audio() WordPress Function

The media_upload_audio() function is used to upload audio files to a WordPress site. This function can be used by both administrators and regular users. To use this function, simply select the audio file you wish to upload from your computer and click the "Upload" button. Once the file has been uploaded, you can add it to a post or page by using the [audio] shortcode.

media_upload_audio() #

Handles uploading an audio file.


Description

Top ↑

See also


Top ↑

Return

(null|string)


Top ↑

Source

File: wp-admin/includes/deprecated.php

function media_upload_audio() {
	_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