wpseek.com
A WordPress-centric search engine for devs and theme authors



get_attached_file › WordPress Filter Hooks

Since2.1.0
Deprecatedn/a
apply_filters( 'get_attached_file', $file, $attachment_id )
Parameters: (2)
  • () file The file path to where the attached file should be, false otherwise.
    Required: Yes
  • () 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 );