put the function in your .zshrc or .bashrc and then
~ ia-save http://twitter.com/atomotic
https://web.archive.org/web/20140702123925/http://twitter.com/atomotic
put the function in your .zshrc or .bashrc and then
~ ia-save http://twitter.com/atomotic
https://web.archive.org/web/20140702123925/http://twitter.com/atomotic
| <?php | |
| // This is the meat of the plugin and should go in mu-plugins/0-env-url-override.php | |
| // Only load these filters if we're not in the production environment | |
| if ( defined( 'ENV_NOT_PRODUCTION' ) && ENV_NOT_PRODUCTION ) { | |
| // This always needs to be filtered | |
| add_filter( 'site_url', 'env_filter_site_url', 0 ); | |
| // We don't filter home_url in the admin so that we get production URLs for posts. | |
| // This does break certain links like "Preview/View Post", however. |