Horje
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:

1. First Download " be-media-from-production.zip " Plugin to your Local Computer. (Click Download)

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

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on " Plugins " + " Add New " from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

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"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on " Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. " BE Media from Production " folder is added on left sidemenu. Now, Click on " BE Media from Production " folder.

   Noted that: If you do not see " BE Media from Production " folder on left sidemenu then, see at left sidemenu " Settings " or " Tools ".

8. Now you configure yourself oR Watch video tutorial below about  BE Media from Production Configurtions 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.


uses , developers , local , media , available , production , server , rest , tutorial ,

Name

Read Article
https://develop.horje.com/learn/1434/reference