PHP code example of natansdj / wp-stage-switcher
1. Go to this page and download the library: Download natansdj/wp-stage-switcher library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
natansdj / wp-stage-switcher example snippets
$envs = array(
'development' => 'http://example.dev',
'staging' => 'http://staging.example.com',
'production' => 'http://example.com'
);
define('ENVIRONMENTS', serialize($envs));
define('WP_ENV', 'development');