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

In this article

Filters the returned ID of an uploaded attachment.

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

$idint
Uploaded attachment ID.

Source

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

Changelog

VersionDescription
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.