I am using WP-offload plugin to cache and its working fine everywhere on the site but when the site loads the images of WPML it loads directly from my server instead of a cdn url like all other images
We had a discussion with the cache plugin support, they are saying that their plugin only cache the images which are present in our media library.
So the only solution we can do is to change the images fetch origin from WPML plugin to WP media library,
Currently images are being fetched from "website/wp-content/plugins/sitepress-multilingual-cms/res/flags/en.svg"
We want to pick these images from WP media folder "website/wp-content/uploads/flags/en.svg"
How can we do that in the code?