Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codelight-eu/wp-media-from-production
WordPress plugin that allows loading media from production server
https://github.com/codelight-eu/wp-media-from-production
Last synced: 3 months ago
JSON representation
WordPress plugin that allows loading media from production server
- Host: GitHub
- URL: https://github.com/codelight-eu/wp-media-from-production
- Owner: codelight-eu
- License: other
- Created: 2018-06-30T12:31:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-14T19:18:46.000Z (over 4 years ago)
- Last Synced: 2024-06-27T11:37:26.949Z (4 months ago)
- Language: PHP
- Size: 36.1 KB
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: license.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-wp-developer-tools - Media from Production - Uses local media when it's available, and uses the production server for rest. (WordPress Plugins)
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](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
Tested & 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
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 `WP_ENV` constant is set to `development` in wp-config:
```php