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
See also
Return
(null|string)
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(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |