A WordPress-centric search engine for devs and theme authors



get_attached_file ›

Since2.1.0
Deprecatedn/a
apply_filters( 'get_attached_file', $file, $attachment_id )
Parameters: (2)
  • (string) $file Path to attached file.
    Required: Yes
  • (int) $attachment_id Attachment ID.
    Required: Yes
Defined at:
Codex:

Filters the attached file based on the given ID.





Source

return apply_filters( 'get_attached_file', $file, $attachment_id );