WP Manifestindependent plugin directory
manifest / media / wp-media-from-production

Media from Production

WordPress plugin that allows loading media from production server

by Codelight · github.com/codelight-eu/wp-media-from-production · website

9stars
23composer installs
3forks

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/codelight-eu/wp-media-from-production/archive/refs/heads/master.zip

Also on Packagist as codelight-eu/wp-media-from-production:

composer require codelight-eu/wp-media-from-production

From the readme

WordPress Media from Production This is a WordPress plugin that allows loading the site's uploaded media files from a different environment. You'll want to use this in your local or development environment to save disk space and time by not constantly having to sync the ridiculously high number of different image sizes. This plugin is a fork of Bill Erickson's BE Media from Production, updated to support different remote folders, svg files, constants instead of filters for configuration and a couple of other details. Version support Tested & works on WP 5.3 and earlier. The plugin is actively used by Codelight in our day-to-day operations, so we expect to maintain it for a while. How it works For every media file that's displayed on the site, the plugin checks if there is an existing local file with the same name in wherever your uploads are located. If there is, it displays the local file. If there is not, then it rewrites the image URL to point at your remote environment. Configuration First, ensure your WPENV constant is set to development in wp-config: Configuring the plugin via wp-config (recommended): Via filters (note that the filter names will change in an upcomin

Read the full README on GitHub →