內容簡介
這個外掛主要是針對需要讓客戶在網站對外公開之前預覽網站,或是在 WordPress 網站進行重大更新時暫時隱藏網站的開發者。
任何具有 WordPress 管理員權限的已登入的用戶都可以查看網站,而不管外掛中的設置是什麼。可以使用過濾勾子來設置確切的特權——請參閱常見問題解答。
此功能的行為可以隨時啟用或禁用,而不會失去在其設置窗格中配置的任何設置。然而,建議在停用時停用外掛,而不是啟用它。
可以排除某些頁面不進入維護模式,因此只有選定的頁面可見。
啟用重定向時,它可以發送兩種不同類型的標題。當網站正在開發中時,最好使用“200 OK”,而當網站因小修補而暫時離線時,最好使用“503 Service Temporarily Unavailable”。如果長時間使用 503,可能會損壞您的 Google 排名。
可以設置一個 IP 地址列表,以完全繞過維護模式。當需要在維護模式下允許客戶的整個辦公室訪問網站時,此選項很有用,而無需維護個別訪問密鑰。
訪問密鑰的工作原理是在使用者的電腦上建立一個密鑰,當維護模式處於活動狀態時,將對此進行檢查。當創建新密鑰時,會向提供的電子郵件地址發送創建訪問密鑰cookie的鏈接。然後可以通過禁用或刪除密鑰來撤銷訪問權限。
此外掛允許使用四種方法通知用戶網站正在進行維護:
他們可以使用 WordPress 的 wp_die() 函数顯示消息,這是 WordPress 的核心函數,使該外掛感覺並且可以運作作為 WordPress 核心的一部分。
他們可以在使用目前樣板的樣式創建的頁面上顯示消息。
他們可以顯示自定義 HMTL 頁面。
他們可以被重定向到靜態頁面或外部 URL。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
This plugin lets you specify a maintenance mode message or HTML page for your site and configure settings to allow specific users to bypass the maintenance mode functionality in order to preview the site prior to public launch.
It also disables the WordPress REST API while maintenance mode is active, ensuring that site data remains inaccessible during maintenance.
Any logged in user with WordPress administrator privileges will be allowed to view the site regardless of the settings in the plugin. The exact privilege can be set using a filter hook – see FAQs.
The behaviour of this can be enabled or disabled at any time without losing any of settings configured in its settings pane. However, deactivating the plugin is recommended versus having it activated while disabled.
Functionality to exclude pages from maintenance mode, so only the selected pages will be visible.
When redirect is enabled it can send 2 different header types. “200 OK” is best used for when the site is under development and “503 Service Temporarily Unavailable” is best for when the site is temporarily taken offline for small amendments. If used for a long period of time, 503 can damage your Google ranking.
A list of IP addresses can be set up to completely bypass maintenance mode. This option is useful when needing to allow a client’s entire office to access the site while in maintenance mode without needing to maintain individual access keys.
Access keys work by creating a key on the user’s computer that will be checked against when maintenance mode is active. When a new key is created, a link to create the access key cookie will be emailed to the email address provided. Access can then be revoked either by disabling or deleting the key.
This plugin allows four methods of notifying users that a site is undergoing maintenance:
They can be presented with a message using WordPress’s wp_die() function which is core function of WordPress, which makes this plugin feel and work as a part of WordPress core.
They can be presented with a message on a page created with the style of the current template.
They can be presented with a custom HMTL page.
They can be redirected to a static page or external URL.
