| 开发者 | cornerstonelabs |
|---|---|
| 更新时间 | 2026年11月2日 00:17 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/shop/ or /checkout/ offline while the rest of the site stays live, and keep pages such as your privacy policy or a payment page always available.wp hushpage status, wp hushpage enable, wp hushpage disable, wp hushpage update "…", wp hushpage bypass-link), an emergency HUSHPAGE_DISABLE constant, and filters to override the template, the visitor IP, or skip specific requests.hushpage folder to /wp-content/plugins/.Yes. Under Where it applies, choose Only these pages and list the paths, one per line, for example /shop/. A path also covers everything under it, so /shop includes /shop/cart/. The rest of the site, and the REST API, stay live. Pages listed under Always available are never blocked, whichever option you choose.
On Settings → Maintenance Mode, type a short note under Live status updates and click Post update (or run wp hushpage update "Backups done"). It appears on the maintenance page with the time. While a visitor keeps the page open, it checks the same address once a minute (only while the tab is visible) and reloads when there is a new update or when your site is back. It contacts only your own site, and stores nothing about visitors. Updates are cleared when the page switches off, and you can turn the automatic check off under Notifications.
Turn the switch on and set Switch on automatically and, optionally, Switch off automatically. Until the start time visitors see the normal site; at the start time the maintenance page appears and page caches are cleared; at the end time it switches off and caches are cleared again. If email alerts are on, the site admin gets an email at the start and at the end.
In maintenance mode the page is sent with HTTP 503 "Service Unavailable" and a Retry-After header. That is how search engines expect a temporary outage to be signalled, and they keep your existing listings. Avoid leaving a site in maintenance mode for weeks.
Yes. Administrators (and any roles you allow) always see the real site. Use Preview the page on the settings screen, or open the site in a private window, to see what visitors see. A red "Maintenance mode is on" item in the admin bar reminds you that it is active.
The plugin clears the common page caches automatically. If your host or a CDN caches pages in a way the plugin can't reach, clear that cache too. Developers can hook into hushpage_purge_caches to add another cache.
Add define( 'HUSHPAGE_DISABLE', true ); to wp-config.php, or run wp hushpage disable with WP-CLI.
Copy templates/page.php into your theme and return its path from the hushpage_template filter. The $hushpage_settings array is available inside it.
For security the plugin reads only REMOTE_ADDR, because forwarded headers can be forged. If your host passes the real visitor address in a trusted header, return it from the hushpage_client_ip filter.
Only if you switch on the contact form. Then it stores the name, email address and message a visitor sends, after they tick a consent box, so you can reply. IP addresses are not stored (spam rate-limiting uses a short-lived hash). Messages are deleted automatically after the number of days you set (90 by default), they are included in WordPress's Tools → Export Personal Data and Erase Personal Data, and suggested wording is added to Settings → Privacy → Policy guide. Without the form, Hushpage stores no visitor data.
It sets one cookie (hushpage_bypass) only for people who open your secret bypass link, so they can keep seeing the real site.
Without any outside service or CAPTCHA: a hidden field that only bots fill in, a check that rejects forms submitted faster than a person can type, a WordPress security token, and a limit of three messages per visitor every ten minutes. Bots that are caught get the normal "thank you", so they learn nothing.