A WordPress-centric search engine for devs and theme authors



update_attached_file ›

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

Filters the path to the attached file to update.





Source

$file = apply_filters( 'update_attached_file', $file, $attachment_id );