Background of the issue:
I am developing a plugin for online photo proofing (picu) using WordPress's native uploader for media uploads. Our images are not meant to be public, so we filter them out from media library queries. This works for media library views and media inserter, but in WPML Media Translation views, these images still appear.
Symptoms:
Images uploaded through our custom post type are showing up in WPML Media Translation views despite being filtered out elsewhere.
Questions:
Is there a filter to exclude media files by ID or parent ID?
How can I filter all media attachments uploaded through a post of our custom post type so they don't show up in media translation?