[WordPress] 外掛分享: Pavel Silinskii Maintenance Mode

首頁 › 外掛目錄 › Pavel Silinskii Maintenance Mode
全新外掛
安裝啟用
—
尚無評分
17 天前
最後更新
—
問題解決
WordPress 5.9+ PHP 8.0+ v1.0.0 上架:2026-11-04

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Pavel Silinskii Maintenance Mode」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Pavel Silinskii Maintenance Mode is built for developers and agencies who deploy WordPress sites from scripts and CI/CD pipelines.
Wrap your deploy in two commands:
wp psmm on --for=15m
# git pull, composer install, wp core update-db ...
wp psmm off

If the deploy script fails halfway, the site comes back by itself when the timeout ends — no more sites left in maintenance overnight.
Why not core wp maintenance-mode? Core’s mode locks out everyone, administrators included, shows a plain “Briefly unavailable” message, and has a fixed 10-minute window. This plugin:

Serves a branded page with HTTP 503 and a Retry-After header matching your timeout
Keeps the site available to administrators, chosen roles, whitelisted IPs and bypass-link holders, so you can check the deploy before visitors do
Lets you choose the timeout per deploy: 90s, 15m, 2h, 1h30m
Never blocks wp-admin, login, the REST API, AJAX, cron or WP-CLI itself

WP-CLI commands:

wp psmm on [--for=] — enable, optionally with an automatic timeout
wp psmm off — disable
wp psmm status [--format=table|json|yaml] — state, end time and bypass link
wp psmm is-active — exit code 0 when active, 1 otherwise, for use in scripts

Also works without the command line, from Settings → Maintenance Mode:

Expected end date with a live countdown and optional auto-disable
Customizable title, message, logo, background and text colors
Secret bypass link for clients and testers (valid for 7 days, revocable)
Preview button and a red “Maintenance Mode: ON” admin bar indicator
Theme override via psmm-maintenance.php
No external scripts — no CDN, no tracking

延伸相關外掛

文章
Filter
Mastodon