[WordPress] 外掛分享: Maintenance Mode

首頁外掛目錄 › Maintenance Mode
WordPress 外掛 Maintenance Mode 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
20,000+
安裝啟用
★★★★
4.7/5 分(63 則評價)
1707 天前
最後更新
問題解決
WordPress 3.5+ v2.4.4 上架:2014-11-26

內容簡介

作為一個經常使用 WordPress 的網站開發人員,我經常遇到這樣的問題:如果我想使用簡單的維護外掛程序對自己的網站或客戶網站進行更新,我就會遇到所有這些無用而又複雜的插件,直到我決定自己製作一個外掛程序,這將是我自己會自信而且能夠輕鬆使用的外掛。

維護模式非常簡單,它使用 WordPress 的 wp_die() 函數,這是 WordPress 核心功能,使得這個插件感覺和工作像是 WordPress 的一部分。在主要的 wp-admin 選單下的「設置」中有一個設置頁面,您可以啟用維護模式或使用 WYSIWYG 編輯器更改內容,以便您也可以添加圖片、鏈接等內容。當啟用維護模式且以管理員身份登錄時,您可以像往常一樣查看網站,其他使用者/訪客將看到維護模式。您可以在設置頁面上的預覽鏈接中以預覽模式作為管理員查看維護模式,或者簡單地在私人模式或其他瀏覽器中打開網站以進行雙重檢查以確認它已啟用和正常運作。在啟用維護模式時,管理員欄中還有一個指示器,當維護模式啟用時,指示器的顏色會變成紅色。

功能:

簡潔易用 – 開發旨在盡可能簡潔。使用方便。
可定制 – 完整的 WYSIWYG 可用,您可以添加圖像和其他媒體,包括鏈接和幾乎您可以使用 WYSIWYG 做的所有事情。文本/代碼選項卡也可用於自定義標記。
適用於手機 – 由於它的簡潔性,維護模式在移動設備上運作非常良好。
無廣告 – 沒有廣告。真的。
無付費升級 – 沒有付費升級。真的。
更新 – 定期更新和維護。
支援 – 支援按鈕可用。
預覽 – 預覽按鈕可用。
緊湊 – 它被研發成盡可能緊湊。
角色控制 – 2.0 版本以來,用戶角色控制可用
可選小工具 – 可選擇將小工具添加到內容的上方和/或下方
可選樣式表 – 可選擇添加自定義樣式表
可選功能添加代碼片段 – 可選添加代碼片段到頁面中。
支援 Analytify 外掛程序 – 如果您使用 Analytify 外掛程序,您可以自動插入 Google Analytics 跟踪代碼。

重要提示!正在使用快取插件的用戶,請閱讀以下內容:
啟用或停用維護模式時,不要忘記清除您的緩存!

過濾器
ljmm_site_title – 在維護模式下篩選頁面標題

ljmm_admin_bar_indicator_enabled - 控制管理工具欄指示器的可見性

limm_css_filename - CSS 樣式表的文件名(在主題樣式表目錄中找到) - 只是文件名,例如:’maintenance.min.css‘。(注意:您不必為樣式表使用此篩選器;請參閱以下常問問題解答)。

ljmm_css_url - CSS 文件的 URL。

操作
ljmm_before_mm – 在核心維護方法開始時運行

有問題嗎?請先閱讀 FAQ,如果需要任何協助,您可以在“維護模式”的設置頁面上使用支援按鈕。

Github 上的開發
Maintenance Mode 的開發正在 GitHub 上進行。歡迎在那裡提交錯誤報告和拉取請求。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.4.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Maintenance Mode」→ 直接安裝(推薦)

原文外掛簡介

As a web developer working with WordPress almost every day, very often I came across problem that If I wanted simple maintenance plugin to do some updates on my or client’s website, I came across all these useless and overcomplicated plugins until I decided that I’ll make one myself which will be the one I’ll be confident and happy to use with ease.
Maintenance Mode is very simple and it’s 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. There is settings page under “Settings” in the main wp-admin menu where you can enable maintenance mode or change content using WYSIWYG editor so you can also add pictures, links etc. When activated and logged in as admin, you can see website as usual, rest of the users / visitors can see maintenance mode. You can see the maintenance mode as admin in preview mode using preview link on the settings page or simply open website in private mode or different browser to double check if it’s enabled and working. There is also indicator in admin bar that changes colour to red when maintenance mode is enabled.
Features:

Simplicity – Built to be as simple as possible. Easy to use.
Customisable – WYSIWYG available in full glory. You can add images and other media including links and pretty much everything you can do with WYSIWYG. Text / Code tab is available too for custom markup.
Works on mobile – Because of it’s simplicity, maintenance mode works very well on mobile devices.
NO ADS – No ads. Seriously.
NO PAID UPGRADES – No paid upgrades. Seriously.
Updates – Regular updates and maintenance.
Support – Support button available.
Preview – Preview button available.
Compact – It’s developed to be as compact as possible.
Role Control – User Role control is available since 2.0
Optional widgets – Optionally add widgets above and/or below the content
Optional style sheet – Optionally add a custom style sheet
Optional ability to add code snippet – Optionally add a code snippet to the page.
Support for Analytify plugin – If you use the Analytify plugin, you can automatically insert the Google Analytics tracking code.

Important! Users that are using Cache plugins, please read below:
When enabling or disabling Maintenance Mode, don’t forget to flush your cache!

Filters
ljmm_site_title – Filter page title while in maintenance mode
ljmm_admin_bar_indicator_enabled - Control visibility of admin bar indicator

limm_css_filename - The filename of the CSS style sheet (as found in the theme's stylesheet directory) - just the filename, for example: `maintenance.min.css`. (Note: you do not need to use this filter for a stylesheet; see FAQs below.)

ljmm_css_url - The url of the css file.

Actions
ljmm_before_mm – Runs at the beginning of core maintenance method
Having trouble? Please read FAQ first, if you need any assistance, you can use support button on the settings page of the Maintenance Mode.

Development on GitHub
The development of Maintenance Mode takes place on GitHub. Bugs and pull requests are welcomed there.

延伸相關外掛

文章
Filter
Mastodon