Skip to content

Instantly share code, notes, and snippets.

Embed
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
You can’t perform that action at this time.