Done, but I left the parameter `id` because it is a post-type and doesn't has a `$post->attachment_id` but `$post->ID`