since a while I am looking for a way to
- add a "link to" option to the media library in the backend (this is working already - using the filter 'attachment_fields_to_edit')
- if there is a link defined for a media file, add the link MEDIA FILE around the media.
I found this post, but that doesn't really help. How to add a link to media file for every image inserted in content?
The filter "wp_get_attachment_image_src" also didn't work (yet?).
And I am stuck with it.
The extension Gallery custom links does what I need (https://de.wordpress.org/plugins/gallery-custom-links/), but is using jquery and I would like to get rid of it.
Anyone an idea? Thanks a lot!