Created
April 18, 2016 23:50
-
-
Save scarstens/478eaaf9d0536b5210daf4f1dcd02faa to your computer and use it in GitHub Desktop.
Custom sunrise for TLD wordpress multisite in 1 file
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 | |
if ( !empty( $_SERVER['HTTP_HOST'] ) ) { | |
$site = get_site_by_path( strtolower( $_SERVER['HTTP_HOST'] ), '/'); | |
define( 'COOKIE_DOMAIN', '.' . $site->domain ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment