Banner for Be Media From Production
For developers - Uses local media when available, and uses the production server for the rest. Wordpress Tutorial
Noted That:
  • To install correctly this be-media-from-production.zip .
  • Fisrt Download the be-media-from-production.zip to your computer
  • Extract/Open be-media-from-production.zip to Your Computer.
  • Then, Find readme.txt file inside be-media-from-production.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.
Start the Tips:

Step-1 : Download " be-media-from-production.zip " to Your Local Computer.

Step-2 : Then, Login to your " yourdomain.com/wp-admin " Dashboard.

Login to Wordpress Be Media From Production

Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.

Go to Plugin Install Be Media From Production

Step-4 : Now, Click on " Upload Plugin " button.

Click Upload Button Be Media From Production

Step-5 : Now, Browse " be-media-from-production.zip " Downloaded plugin from your computer, Where you downloaded " be-media-from-production.zip " According to Step – 1 Above then, click on " Install Now "

Upload Plugin Be Media From Production

Step-6 : Now, Click on " Active Plugin "

Activate Be Media From Production

Step-7 : Then, See left Side Menu. " Be Media From Production " folder is added on left Side Menu. Now, Click on " Be Media From Production " folder.

Noted that: If you do not see " Be Media From Production " folder on left Side Menu then, see at left Side Menu " Settings " or " Tools ".

Step-8 : Now you configure yourself oR Watch video tutorial below about Be Media From Production Configurations and Settings or How to work " Be Media From Production " in your WordPress site.

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " BE Media from Production " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is BE Media from Production
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide

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 your theme’s functions.php file, a core functionality 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 DB Pro

WP Migrate DB Pro is my preferred tool for pushing/pulling databases between environments. The Media addon allows you 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.


Name