Title: async_upload_{$type}
Published: April 25, 2014
Last modified: August 20, 2026

---

# apply_filters( “async_upload_{$type}”, int $id )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/async_upload_type/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/async_upload_type/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/async_upload_type/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/hooks/async_upload_type/?output_format=md#changelog)

Filters the returned ID of an uploaded attachment.

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

The dynamic portion of the hook name, `$type`, refers to the attachment type.

Possible hook names include:

 * `async_upload_audio`
 * `async_upload_file`
 * `async_upload_image`
 * `async_upload_video`

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/async_upload_type/?output_format=md#parameters)󠁿

 `$id`int

Uploaded attachment ID.

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

    ```php
    echo apply_filters( "async_upload_{$type}", $id );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/async-upload.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-admin/async-upload.php#L175)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/async-upload.php#L175-L175)

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

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

## User Contributed Notes

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