WP Manifestindependent plugin directory
manifest / media / dude-load-media-from-remote

Load images from remote

Try to load images from remote if not present in local env

★ 5stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/digitoimistodude/dude-load-media-from-remote/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Load images from remote for Dudestack

A WordPress plugin that tries to load images from remote url if file is not present in local environment.

Clean up the media

Set up media load from production

It's nice to have images if you need to debug or develop the site further, without having to copy all images to your computer or sync them with Syncthing.

Add dude-load-media-from-remote to repositories section in your composer.json:

{
  "type": "vcs",
  "url": "https://github.com/digitoimistodude/dude-load-media-from-remote"
}

Then add to require-dev in your composer.json:

"digitoimistodude/dude-load-media-from-remote": "dev-main"

Then modify .env file and add:

REMOTE_MEDIA_URL=https://production.fi

Run:

composer update

Then run:

wp plugin activate dude-load-media-from-remote

Disclaimer

This plugin is made to use with dudestack and air-helper, but it might work without it too, since it only alters the url. Notice that the url structure and image sizes must be exactly the same in the remote env.