Skip to content

Instantly share code, notes, and snippets.

@ashwebstudio
Last active December 16, 2015 16:28
Show Gist options
  • Save ashwebstudio/5462930 to your computer and use it in GitHub Desktop.
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.
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