Maintenance mode
Enable maintenance mode Maintenance mode is built into WordPress. To enable it, create a file named .maintenance in your website’s root folder. Add the following PHP code to the file: <? $upgrading = time(); ?> This PHP code will make WordPress show the maintenance page until you delete the .maintenance file. You could also create a custom maintenance page.