A WordPress-centric search engine for devs and theme authors



async_upload_{$type} ›

Since2.5.0
Deprecatedn/a
apply_filters( "async_upload_{$type}", $id )
Parameters:
  • (int) $id Uploaded attachment ID.
    Required: Yes
Defined at:
Codex:

Filters the returned ID of an uploaded attachment.

The dynamic portion of the hook name, $type, refers to the attachment type, such as 'image', 'audio', 'video', 'file', etc.





Source

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