| 开发者 | amitry |
|---|---|
| 更新时间 | 2026年5月29日 22:32 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
amm_register_templates - Register additional templatesamm_should_show_maintenance - Override the show-or-not decisionamm_render_html - Filter the final HTML outputamm_head_meta - Replace the head meta block (used by Pro SEO)amm_settings_schema - Add your own settings fieldsAMM_HOOK_VERSION on activation to ensure compatibility.
Compatibility
/wp-content/plugins/ and unzip, OR upload via Plugins -> Add New -> Upload PluginYes. The plugin renders its own standalone HTML page when maintenance is active, completely independent of your theme or page builder. When maintenance is off, your normal WooCommerce shop, Elementor pages, and block-editor content work as usual. You can also exclude specific pages from maintenance, so for example your shop checkout could stay live while the rest of the site is in maintenance.
No, not if you use the default settings. The plugin sends a 503 Service Unavailable HTTP status code along with a Retry-After header. This tells Google and other search engines that the downtime is temporary and they should not deindex your content. The page also defaults to noindex, nofollow on the robots meta tag.
This is the WordPress-recommended way to handle maintenance and is much safer than just showing a static page with 200 OK status.
Go to Maintenance -> Excluded Pages in the admin. You can:
/feed, /shop/*, /api)The free version supports basic HTML in the description (strong, em, a, br tags). For full custom CSS and JavaScript, you can use the Pro add-on or hook into amm_render_html and amm_head_extra from a custom plugin.
The plugin auto-flushes the major cache plugins when you toggle maintenance on or off, and when you change visible settings. Supported: W3 Total Cache, WP Super Cache, WP Rocket, LiteSpeed Cache, SG Optimizer (SiteGround), Cache Enabler, Comet Cache, Hummingbird, and Autoptimize. The maintenance page itself also sends Cache-Control: no-cache, no-store, must-revalidate headers so browsers and CDNs do not cache it.
You should not be able to lock yourself out, because administrators always bypass the maintenance page. This is hardcoded and cannot be turned off, exactly to prevent this scenario.
If for some reason you still cannot reach the admin, you can disable the plugin via FTP: rename the wp-content/plugins/amitry-maintenance-mode/ folder to anything else (e.g. amitry-maintenance-mode-off) and WordPress will automatically deactivate it.
By default, only administrators bypass the maintenance page. You can configure additional roles (Editor, Author, Contributor, Subscriber, custom roles) to also bypass it under Maintenance -> Access. Administrators always bypass, even if you accidentally remove the role from the list. This is a deliberate lockout protection.
No tracking. No external calls. No analytics. No cookies set by the plugin itself. The plugin runs entirely on your own server. No data leaves your site. All assets (CSS, JavaScript, images) are served from your own domain. If you enable Google Analytics in the Pro add-on, that is the only optional integration that talks to a third party, and it is fully under your control.
Deactivate and delete the plugin via the Plugins screen. The uninstall script removes all settings from wp_options automatically. No leftover data, no orphan database entries.
Go to Maintenance -> Settings and look for the "Setup" card in the right sidebar. Click "Run setup wizard" to walk through it again.