Last active
December 16, 2015 16:28
-
-
Save ashwebstudio/5462930 to your computer and use it in GitHub Desktop.
Add to your theme's functions.php file. If you are logged in as an admin, it let's you view the site as normal.
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
add_action('wp', 'coming_soon'); | |
function coming_soon() { | |
if (current_user_can('manage_options')) return; | |
wp_die('We are quickly performing an upgrade to our site - should be back up shortly.'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment