Created
March 26, 2012 01:32
-
-
Save chrisvanpatten/2202106 to your computer and use it in GitHub Desktop.
WordPress staging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//... | |
$urlParts = explode('.', $_SERVER['HTTP_HOST']); | |
if ($urlParts[0] == 'staging') { | |
// Do some stuff if we're on staging | |
define('WB_DEBUG', true); | |
// I want to rewrite the site_url and home_url here | |
} | |
//... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment