Simple maintenance mode for block themes. Shows a maintenance template to logged-out visitors.
Planned Outage for Block Themes is a lightweight plugin that enables maintenance mode for WordPress block themes. When enabled, logged-out visitors see your custom maintenance template while logged-in users can browse the site normally.
How do I create a maintenance template?
You have two options:
- Site Editor: Go to Appearance > Editor > Templates, create a new template named “maintenance”
- Theme file: Add a
maintenance.html file to your theme’s /templates/ folder
How does scheduling work?
Set a start and end date/time under Settings > Planned Outage (times are entered in your site’s timezone). Maintenance mode activates automatically when the window begins and deactivates when it ends — no manual toggling and no reliance on WP-Cron: the window is checked on every request, so the switch is exact. The manual toggle still works independently; maintenance is active if either the toggle is on or the current time is inside the window. During a scheduled window the Retry-After header automatically reflects the time remaining.
Does the maintenance template show during WordPress core, plugin, or theme updates?
No, and this is a WordPress limitation rather than a plugin bug. During a real update WordPress creates a .maintenance file and ends the request very early in its boot process — before any plugin code loads — showing its built-in “Briefly unavailable for scheduled maintenance” screen. No plugin can render a block template at that point. These windows are short (WordPress considers maintenance over after 10 minutes) and only occur during actual updates. If you want a custom page for those moments, WordPress supports a hand-made wp-content/maintenance.php drop-in, which is independent of this plugin.
Who can see the site when maintenance mode is enabled?
All logged-in users can browse the site normally. Only logged-out visitors see the maintenance template. You can also enable search engine bots to bypass maintenance mode, or generate a bypass link for non-logged-in users.
What is the Expected Duration setting?
This sets the Retry-After HTTP header, which tells search engines how long to wait before checking your site again. Options range from 30 minutes to 1 day. You can also select “Pre-Launch (indefinite)” for sites that aren’t live yet, which disables duration tracking and admin warnings.
What is the Bypass Link?
When enabled, the plugin generates a secret URL you can share with anyone who needs to view the site during maintenance without logging in. A 12-hour cookie is set on first visit so they can navigate freely. You can regenerate the link at any time to invalidate the previous one.
Should I enable Search Engine Access?
For short maintenance periods (under 2 hours), the default settings are fine. For longer maintenance (over 2 hours), consider enabling search engine access. For maintenance lasting more than a day, always enable it to prevent pages from being removed from search indexes.
What status code is returned?
The plugin returns a 503 (Service Unavailable) status with a Retry-After header, which tells search engines the site is temporarily unavailable.
Will this work with caching plugins?
The plugin detects popular full-page cache plugins (Surge, WP Super Cache, W3 Total Cache, WP Fastest Cache, LiteSpeed Cache, WP Rocket) and displays a warning on the settings page when one is active. Caches are automatically flushed when settings are saved to ensure the maintenance page is served immediately.
Server-level caches (Nginx FastCGI cache, Varnish, Cloudflare, etc.) cannot be detected or flushed by the plugin. If maintenance mode is not working and you use server-level caching, flush that cache manually.
How to uninstall the plugin?
Simply deactivate and delete the plugin. The plugin stores options prefixed with pobt_ which are removed when you deactivate the plugin.