We were just updating a client site and needed to put up a temporary “Maintenance” page up while we did some major changes to their site. This little snippet should be included in your WordPress theme’s functions.php file.