Skip to content

Instantly share code, notes, and snippets.

Last active December 16, 2015 16:28
What would you like to do?
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