Created
April 27, 2016 21:19
-
-
Save te-online/cea6136609b4055c7a4de33d8dcae403 to your computer and use it in GitHub Desktop.
Add this to functions.php if you want to disable login for users when moving servers or doing maintenance.
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(is_admin()) { | |
wp_die('Sorry, the WordPress interface is currently not available. This website is moving to another server just now. Please come back later.'); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment