I am using a WordPress content protection plugin with a feature that can watermark images when javascript is disabled on the browser. The feature is working on images within the post as follows... Firstly it performs a redirect to a no-javascript php script when it detects the browser is not supporting javascript. Then it gets the content of the current post, matches any/all img src URLs within the content, modifies the img src URLs (so that the images are parsed via a php script that applies the image watermarking), then returns the post content with the modified URLs. All good.
However, most of the images that I wish to protect are set as featured images (aka post thumbnails), and thus are not part of the content. I'm not getting any support from the plugin author (paid plugin). So I'm looking to modify the plugin.
I am aware of wp_get_attachment_image_src() and the_post_thumbnail_url() as means of fetching the featured image URL. But I can't find any means of returning a modified featured image URL for the current post.
So what I am after is a small script that, for the current post/page, allows me to access the featured image URL and return a modified URL for display by the browser (same concept as for getting, modifying and returning the_content of a post). I don't want to be changing the image attachment details. Is it possible?
Please, no comments/discussion on the merits (or rather futility) of content/image protection. That's a different discussion altogether.
Thank you in advance for any support provided!!