KhoiPro

Smart. Automation. Experience.

Load remote assets in WordPress local projects

Recently when working with a few WordPress project which was published, I’m too lazy and don’t want to download the copy of assets (around 3-4GB images) in wp-content/uploads folder.

So I tried to figure it out using another way: running WordPress filters and replace URLs to load direct from a remote URL.

Benefits

Good

Bad

What did I do?

Don’t worry, here is my snippet. Do you see a magic?

comments powered by Disqus