Plugin info

Total downloads: 13,955
Active installs: 1,000
Total reviews: 9
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 3
Last updated: 11/28/2023 (764 days ago)
Added to WordPress: 5/9/2019 (6 years old)
Minimum WordPress version: 4.3
Tested up to WordPress version: 6.3.5
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 764 days ago • 9 reviews

22/100

Is BE Media from Production abandoned?

Possibly abandoned (last update 764 days ago).

Compatibility

Requires WordPress: 4.3
Tested up to: 6.3.5
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Environmental Plugin Manager
Rating 5.0/5 (1 reviews)Active installs 0
Migration, Backup, Staging – WPvivid Backup & Migration
Rating 4.9/5 (1,365 reviews)Active installs 800,000
Backup Migration
Rating 4.9/5 (1,269 reviews)Active installs 100,000
BlogVault Backup & Staging
Rating 4.5/5 (317 reviews)Active installs 80,000
InstaWP Connect – 1-click WP Staging & Migration
Rating 4.5/5 (11 reviews)Active installs 40,000
Backup and Staging by WP Time Capsule
Rating 4.1/5 (125 reviews)Active installs 20,000

Description

When spinning up a staging or local development environment, you might not need the full uploads directory, but you also don’t want to see broken images throughout the site.

This plugin lets you use the production server for missing media. Define the production URL using a wp-config.php constant BE_MEDIA_FROM_PRODUCTION_URL or filter be_media_from_production_url.

In all cases, if a local file exists, it will be used in preference to the remote file.

Installation

Once the plugin is installed, add the following constant to wp-config.php with your production URL.

define( 'BE_MEDIA_FROM_PRODUCTION_URL', 'https://www.billerickson.net' );

Alternatively, you can use the filter in a Code Snippets plugin or a mu-plugin:

add_filter( 'be_media_from_production_url', function() {
    return 'https://www.billerickson.net';
});

Installation via WP-CLI and constants

wp plugin install --activate be-media-from-production
wp config set BE_MEDIA_FROM_PRODUCTION_URL https://www.billerickson.net --type=constant

Using with WP Migrate

WP Migrate is my preferred tool for pushing/pulling databases between environments. The media files functionality allows you to transfer media between environments along with the database.

When redesigning a website, I keep all the media on my development server and push up new media uploads along with the database.

Set up a “push” profile to push your local database to the development server. Make sure “Media Files” is checked and select “Compare, then upload”.

Set up a “pull” profile to pull the development database locally. Do not include media in your pull. Any missing media will be handled by BE Media from Production.

Frequently Asked Questions

No FAQ available

Review feed

Stanko Metodiev
5/10/2019

Awesome!

We are using the plugin from GitHub for quite some time. Now it will be even easier, great work!
Levdbas
4/30/2020

Makes maintaining sites a breeze

Sites that heavily rely on media were painfully to maintain. Not only did I have to get the local database in sync on my development machine, but also the media to get a good picture of how the site will look after a new feature I added. With this plugin this becomes a breeze as I do not have to download all media to my local machine anymore. This saves time and diskspace. Thank you Bill for this awesome plugin.
Clifford Paulick
6/21/2020

So glad I found this

Just a really great complement to localhost development, especially since pretty much every backup/export utility allows excluding certain directories, like wp-content/uploads Many thanks!
Simon Blackbourn
10/1/2020

Very useful, works perfectly

Incredibly useful plugin when doing local development work on sites with huge media libraries, when you don't want to fill up your local hard drive with or spend time syncing with your remote site.

Screenshots

No screenshots available

Changelog

No changelog available