Easy WordPress Maintenance mode

Activate the a Maintenance Mode for your WordPress site with this simple snippet. No plugins whatsoever 🙂

Paste the following code into the functions.php file of your theme.

You can customize the text, redirect the users to somewhere else…

You could also redirect the users to the login page. I find this extremely useful when having the site under construction but you want to client to be able to log in.

No comments yet, leave yours!

Leave a Reply

Add <code> Some Code </code> by using this tags.