PHPackages                             codelight-eu/wp-media-from-production - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. codelight-eu/wp-media-from-production

ActiveWordpress-plugin[File &amp; Storage](/categories/file-storage)

codelight-eu/wp-media-from-production
=====================================

Media from Production

1.1(7y ago)9223[1 issues](https://github.com/codelight-eu/wp-media-from-production/issues)PHP

Since Sep 18Pushed 6y ago3 watchersCompare

[ Source](https://github.com/codelight-eu/wp-media-from-production)[ Packagist](https://packagist.org/packages/codelight-eu/wp-media-from-production)[ Docs](https://codelight.eu)[ RSS](/packages/codelight-eu-wp-media-from-production/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (3)Used By (0)

WordPress Media from Production
===============================

[](#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](https://github.com/billerickson/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
---------------

[](#version-support)

Tested &amp; works on WP 5.3 and earlier.

The plugin is actively used by [Codelight](https://codelight.eu/) in our day-to-day operations, so we expect to maintain it for a while.

How it works
------------

[](#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
-------------

[](#configuration)

First, ensure your `WP_ENV` constant is set to `development` in wp-config:

```
