Modyfying URL of an image
-
I have tried to find a hook to easily modify the URL of the image, but – I believe – I would have to write the whole
add_feed_item_media
function. Or, but this I am not certain of, just write a proper hook foradd_feed_item_media
.Can you, please, advise on the correct approach here? I am Golang/Java developer, PHP is a bit awkward for me after so many years of not using it…
Rationale – I have a server with a heavy hotlinking config going on, so I need to modify the URL of images to bypass that “shield” for feed users.
The simplest way I can see is to add one additional hook and two lines of code to this plugin. Happy to share a patch if you would like to use that – I am certain a lot of people can benefit from that, especially using hotlinking prevention (i.e. CloudFlare users…)
- The topic ‘Modyfying URL of an image’ is closed to new replies.