Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



async_upload_{$type} ›

Seit2.5.0
Veraltetn/v
apply_filters( "async_upload_{$type}", $id )
Parameter:
  • (int) $id Uploaded attachment ID.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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