WP Manifestindependent plugin directory
manifest / developer / uploads-from-production

Uploads from Production

A WordPress plugin that provides helpers for fetching images from a production server.

★ 2stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/ebinnion/uploads-from-production/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

This 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.