Hi –
I would like to add a custom metafield to specific attachments which are saved via the basic file upload field type of a custom post type. I’ve looked into various hooks and actions add_attachment, attachment_fields_to_save but
This is because I want to hide these files from the media library and will use the metafield to filter these out in the media library query.
Any suggestions?