I have moved my uploads directory to another server. For example, a url that was pointing to:
http://example.com/wp-content/uploads/2015/05/image.jpg
should point to here in the new situation:
http://otherexample.com/2015/05/image.jpg
I know I could do this by a rewrite rule or by a database search and replace, but for various reasons this is not what we want.
Now I know that it is possible to change the urls of posts etc. by using the filter hooks post_link, page_link and post_type_link. I was wondering, is there also a hook that can be used for changing image urls when they are requested from the system?
I primarily focus on the urls for featured images and such, as images in the post content are plain text in the database.
Regards, Joost.