Plugin Directory

Changeset 3002745


Ignore:
Timestamp:
11/28/2023 01:23:08 PM (2 years ago)
Author:
billerickson
Message:

fix code snippets in readme

Location:
be-media-from-production
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • be-media-from-production/tags/1.7.0/readme.txt

    r2940960 r3002745  
    2020Once the plugin is installed, add the following constant to wp-config.php with your production URL.
    2121
    22 ```
     22`
    2323define( 'BE_MEDIA_FROM_PRODUCTION_URL', 'https://www.billerickson.net' );
    24 ```
     24`
    2525
    2626Alternatively, you can use the filter in a Code Snippets plugin or a mu-plugin:
    2727
    28 ```
     28`
    2929add_filter( 'be_media_from_production_url', function() {
    3030    return 'https://www.billerickson.net';
    3131});
    32 ```
     32`
    3333
    3434**Installation via WP-CLI and constants**
    3535
    36 ```
     36`
    3737wp plugin install --activate be-media-from-production
    3838wp config set BE_MEDIA_FROM_PRODUCTION_URL https://www.billerickson.net --type=constant
    39 ```
     39`
    4040
    4141**Using with WP Migrate**
  • be-media-from-production/trunk/readme.txt

    r2940960 r3002745  
    2020Once the plugin is installed, add the following constant to wp-config.php with your production URL.
    2121
    22 ```
     22`
    2323define( 'BE_MEDIA_FROM_PRODUCTION_URL', 'https://www.billerickson.net' );
    24 ```
     24`
    2525
    2626Alternatively, you can use the filter in a Code Snippets plugin or a mu-plugin:
    2727
    28 ```
     28`
    2929add_filter( 'be_media_from_production_url', function() {
    3030    return 'https://www.billerickson.net';
    3131});
    32 ```
     32`
    3333
    3434**Installation via WP-CLI and constants**
    3535
    36 ```
     36`
    3737wp plugin install --activate be-media-from-production
    3838wp config set BE_MEDIA_FROM_PRODUCTION_URL https://www.billerickson.net --type=constant
    39 ```
     39`
    4040
    4141**Using with WP Migrate**
Note: See TracChangeset for help on using the changeset viewer.