Filters the attached file based on the given ID.
$filestring|false$attachment_idintwp-includes/post.php:868get_attached_file() * * @since 2.1.0 * * @param string|false $file The file path to where the attached file should be, false otherwise. * @param int $attachment_id Attachment ID. */ return apply_filters( 'get_attached_file', $file, $attachment_id );} /** * Updates attachment file path based on attachment ID. * * Used to update the file path of the attachment, which uses post meta nameIntroduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.