Skip to content

Instantly share code, notes, and snippets.

@billerickson billerickson/local-settings.php Secret
Created Oct 31, 2017

Embed
What would you like to do?
<?php
/**
* Plugin Name: Local Settings
* Description: Code that should only run in local environment
* Version: 1.0
* Author: Bill Erickson
* Author URI: http://www.billerickson.net
* License: MIT
* License URI: http://www.opensource.org/licenses/mit-license.php
*/
/**
* Media URL
*
*/
function be_local_media_url( $url ) {
return 'http://sample.wpengine.com';
}
add_filter( 'be_media_from_production_url', 'be_local_media_url' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.