Created
October 22, 2014 18:36
-
-
Save SPGB/8fc283b3e33170e19027 to your computer and use it in GitHub Desktop.
Wordpress Blank Maintenance Message
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 | |
//to include at the top of header.php | |
$ip = 'xx.xx.xx.xx'; | |
if ($ip !== $_SERVER['REMOTE_ADDR']) { | |
echo 'We are currently down for maintenance. Please check back soon. Thank you.'; | |
exit; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment