|
|
| For developers - Uses local media when available, and uses the production server for the rest. Wordpress Tutorial |
|
Noted That:
|
|
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.
Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.
Step-4 : Now, Click on " Upload Plugin " button.
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 "
Step-6 : Now, Click on " Active Plugin "
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. oRAfter Activated Plugin According to Step-6 then,
|
| 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() { Installation via WP-CLI and constants
wp plugin install –activate be-media-from-production 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 |
|---|