Uploads from Production
A WordPress plugin that provides helpers for fetching images from a production server.
by Eric Binnion · github.com/ebinnion/uploads-from-production · website
★ 2stars
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/ebinnion/uploads-from-production/archive/refs/heads/master.zipThis plugin is meant to provide utilities for fetching and proxying images from a production server when working locally.
Currently, proxying images is implemented and it works by activating the plugin and then setting the UPLOADS_FROM_PRODUCTION_PROXY_URL constant in wp-config.php. For example:
define( 'UPLOADS_FROM_PRODUCTION_PROXY_URL', 'https://eric.blog' );
When this constant is present, this plugin attempts to overwrite the image URLs from attachments.
Future Work
- A WP-CLI command that will import image from the primary image from the production server and then process thumbnails locally.