Title: media_upload_audio
Published: April 25, 2014
Last modified: May 20, 2026

---

# media_upload_audio(): null|string

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/media_upload_audio/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/functions/media_upload_audio/?output_format=md#see-also)
 * [Return](https://developer.wordpress.org/reference/functions/media_upload_audio/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/media_upload_audio/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/media_upload_audio/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/media_upload_audio/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/media_upload_audio/?output_format=md#wp--skip-link--target)

This function has been deprecated since 3.3.0. Use [wp_media_upload_handler()](https://developer.wordpress.org/reference/functions/wp_media_upload_handler/)
instead.

Handles uploading an audio file.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/media_upload_audio/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/functions/media_upload_audio/?output_format=md#see-also)󠁿

 * [wp_media_upload_handler()](https://developer.wordpress.org/reference/functions/wp_media_upload_handler/)

## 󠀁[Return](https://developer.wordpress.org/reference/functions/media_upload_audio/?output_format=md#return)󠁿

 null|string

## 󠀁[Source](https://developer.wordpress.org/reference/functions/media_upload_audio/?output_format=md#source)󠁿

    ```php
    function media_upload_audio() {
    	_deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' );
    	return wp_media_upload_handler();
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/deprecated.php#L901)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/deprecated.php#L901-L904)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/media_upload_audio/?output_format=md#related)󠁿

| Uses | Description | 
| [wp_media_upload_handler()](https://developer.wordpress.org/reference/functions/wp_media_upload_handler/)`wp-admin/includes/media.php` |

Handles the process of uploading media.

  | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/media_upload_audio/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.3.0](https://developer.wordpress.org/reference/since/3.3.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fmedia_upload_audio%2F)
before being able to contribute a note or feedback.