Last active
May 27, 2019 15:13
-
-
Save runningman84/0eed81c26e6ee896c676756ecae08319 to your computer and use it in GitHub Desktop.
wp_local_domains.php
This file contains hidden or 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 | |
$domains = array(); | |
$mydomains = array(); | |
if (getenv('WP_OFFLOAD_LOCAL_DOMAINS')) { | |
$mydomains = explode(' ', getenv('WP_OFFLOAD_LOCAL_DOMAINS')); | |
} | |
if ($_SERVER['HTTP_HOST']) { | |
$mydomains[] = $_SERVER['HTTP_HOST']; | |
} | |
var_dump(array_merge($domains, $mydomains)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment