Skip to content

Instantly share code, notes, and snippets.

@SPGB
Created October 22, 2014 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SPGB/8fc283b3e33170e19027 to your computer and use it in GitHub Desktop.
Save SPGB/8fc283b3e33170e19027 to your computer and use it in GitHub Desktop.
Wordpress Blank Maintenance Message
<?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