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

by Digitoimisto Dude Oy · github.com/digitoimistodude/dude-load-media-from-remote · website

5stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/digitoimistodude/dude-load-media-from-remote/archive/refs/heads/main.zip

Readme

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.

Read the full README on GitHub →