Title: Admin Maintenance Message
Author: Andreas Grzybowski
Published: <strong>2025 年 10 月 6 日</strong>
Last modified: 2025 年 11 月 11 日

---

搜尋外掛

![](https://ps.w.org/admin-maintenance-message/assets/banner-772x250.png?rev=3373740)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/admin-maintenance-message/assets/icon-256x256.png?rev=3373740)

# Admin Maintenance Message

 由 [Andreas Grzybowski](https://profiles.wordpress.org/antman313/) 開發

[下載](https://downloads.wordpress.org/plugin/admin-maintenance-message.1.0.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/admin-maintenance-message/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/admin-maintenance-message/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/admin-maintenance-message/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/admin-maintenance-message/#developers)

 [技術支援](https://wordpress.org/support/plugin/admin-maintenance-message/)

## 外掛說明

A flexible admin & frontend maintenance plugin for WordPress.

Display a non-dismissible banner across the admin area to notify users of upcoming
maintenance windows — and optionally replace the **public site** with a fully customizable
maintenance page (WordPress page, custom HTML, or template file).

### Features

 * Admin notice visible to all or selected roles
 * Configurable date/time window (`from`/`to`)
 * Free text with placeholders: `{DATE}`, `{FROM}`, `{TO}`, `{TZ}`, `{WEEKDAY}`,`{
   DATE_TO}`, `{WEEKDAY_TO}`, `{DATETIME_FROM}`, `{DATETIME_TO}`
 * Frontend maintenance mode:
    - WordPress page mode
    - Custom HTML block
    - Template file (in `/assets/maintenance/templates/`)
 * Optional bypass for logged-in users
 * Multisite-safe uninstall
 * Fully translatable (`Text Domain: admin-maintance-msg`)

Configure under **Settings  Wartungshinweis**.

### Usage

### 1. Aktivierung und Zugriff

Nach der Installation findest du den Menüpunkt unter:
 **Einstellungen  Wartungshinweis**

Hier kannst du das Verhalten des Plugins vollständig steuern.

### 2. Admin-Warnleiste (Dashboard-Hinweis)

Diese Leiste wird oben im WordPress-Dashboard angezeigt, für alle oder ausgewählte
Benutzerrollen.

**Einstellungen:**
 – **Wartung aktiv (Checkbox):** Zeigt den Hinweis sofort an,
auch außerhalb eines Zeitfensters. – **Von / Bis (Datum + Uhrzeit):** Optionales
Zeitfenster, innerhalb dessen der Hinweis automatisch aktiv ist. – **Nachricht:**
Freitext oder Vorlage mit Platzhaltern: – `{WEEKDAY}`, `{DATE}`, `{FROM}`, `{TO}`,`{
TZ}` – `{DATETIME_FROM}`, `{DATETIME_TO}`, `{WEEKDAY_TO}`, `{DATE_TO}` – **Sichtbar
für Rollen:** Bestimme, welche Rollen die Nachricht sehen (z. B. nur Administratoren
oder Redakteure).

💡 _Wenn kein Text eingegeben ist, erzeugt das Plugin automatisch eine Standardmeldung
auf Basis des Zeitfensters._

### 3. Frontend-Wartungsmodus

Wenn aktiviert, ersetzt das Plugin deine öffentliche Website während der Wartungszeit
durch eine **Maintenance Landingpage**.

**Einstellungen:**
 – **Frontend Maintenance aktiv:** Schaltet den Modus ein. – **
Bypass für eingeloggte Nutzer:** erlaubt angemeldeten Benutzern, die Seite weiterhin
normal zu sehen. – **Landingpage-Modus:** 1. **WordPress-Seite:** Nutzt den Inhalt
einer bestehenden Seite (Dropdown-Auswahl). 2. **Custom HTML:** Du kannst eine eigene
HTML-Struktur direkt im Textfeld hinterlegen. 3. **Template-Datei:** Wähle eine 
HTML-Datei aus dem Plugin-Verzeichnis (`assets/maintenance/templates/`).

💡 _Das Standard-Template `default.html` zeigt Titel, Nachricht und Zeitraum automatisch
an._

### 4. Templates anpassen

Eigene Templates kannst du einfach ergänzen:

 1. Erstelle im Verzeichnis `/assets/maintenance/templates/` eine Datei, z. B. `blue-
    theme.html`.
 2. Verwende Platzhalter für dynamische Inhalte:
 3.  * `{{TITLE}}`, `{{MESSAGE}}`, `{{SITE_NAME}}`, `{{WINDOW}}`
     * `{{FROM}}`, `{{TO}}`, `{{DATE}}`, `{{DATE_TO}}`, `{{TZ}}`
 4. Füge eigene CSS-Dateien unter `/assets/maintenance/css/` hinzu und binde sie im
    Template mit `<link>` ein.

### 5. Verhalten und Priorität

Das Plugin aktiviert die Frontend-Wartung, wenn:
 – „Frontend Maintenance aktiv“**
oder** – ein gültiges **Von/Bis-Zeitfenster** aktiv ist.

Während dieser Zeit:
 – wird HTTP **503 (Service Unavailable)** gesendet, – ein `
Retry-After` Header gesetzt, – und `noindex, nofollow` Meta-Tags ausgegeben (SEO-
freundlich).

Nach Ablauf oder Deaktivierung wird die normale Seite automatisch wieder angezeigt.

### 6. Deinstallation

Beim Entfernen über „Plugins  Deinstallieren“:
 – werden alle Optionen (`ammsg_options`,
alte `ck_admin_maintenance_opts`) gelöscht, – in Multisite-Umgebungen automatisch
für alle Sites bereinigt.

### 7. Tipps & Best Practices

 * Verwende **UTC+X Zeitzonen** bewusst – die Pluginzeiten richten sich nach der
   WordPress-Zeitzone.
 * Wenn du Templates bearbeitest, achte auf **UTF-8 ohne BOM**.
 * Du kannst über Filter eigene Verhalten ergänzen:
    - `ammsg_uninstall_option_keys` – eigene Optionen löschen
    - `ammsg_frontend_template_replacements` – Platzhalter erweitern

### Support

Questions or ideas?
  Visit [https://codekeks.de](https://codekeks.de) or the [WordPress.org support forum](https://wordpress.org/support/plugin/admin-maintanance-message/)

## 螢幕擷圖

[⌊Admin settings page⌉⌊Admin settings page⌉[

Admin settings page

[⌊Dashboard maintenance banner⌉⌊Dashboard maintenance banner⌉[

Dashboard maintenance banner

[⌊Frontend maintenance landing page (template mode)⌉⌊Frontend maintenance landing
page (template mode)⌉[

Frontend maintenance landing page (template mode)

## 安裝方式

 1. Upload the plugin folder `admin-maintance-msg` to `/wp-content/plugins/`
 2. Activate the plugin via **Plugins  Installed Plugins**
 3. Open **Settings  Wartungshinweis**
 4. Define your time window, message, and optional frontend page or template.

## 常見問題集

### Can I use placeholders in my custom message?

Yes: `{WEEKDAY}`, `{DATE}`, `{FROM}`, `{TO}`, `{TZ}`, `{DATETIME_FROM}`, `{DATETIME_TO}`,`{
WEEKDAY_TO}`, `{DATE_TO}`.

### How do I enable the frontend maintenance mode?

Check “Frontend Maintenance active” and choose between:
 – “WordPress page”  select
an existing page – “Custom HTML”  enter your own markup – “Template file”  choose
a file from `assets/maintenance/templates/`

### Can I limit who sees the admin notice?

Yes. Use the role selector to restrict the banner to specific user roles.

### Does it work with multisite?

Yes, it respects network activation and uninstalls cleanly.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Admin Maintenance Message〉的開發相關工作。

參與者

 *   [ Andreas Grzybowski ](https://profiles.wordpress.org/antman313/)

[將〈Admin Maintenance Message〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/admin-maintenance-message)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/admin-maintenance-message/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/admin-maintenance-message/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/admin-maintenance-message/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/admin-maintenance-message/)。

## 變更記錄

#### 1.0.2

 * Fixed a bad issue – sorry
 * some small improvements

#### 1.0.1

 * New: Admin Settings page redesigned with hero header and sidebar.
 * Fix: Unified textdomain with WordPress.org slug.
 * Polish: Default maintenance template improved.
 * Fixed some smaller Bugs
 * Some small improvements
 * Tested up to: 6.8.

#### 1.0.0

 * Major release — new Frontend Maintenance Mode with selectable templates and custom
   HTML.
 * Role-based visibility for admin notice.
 * Centralized defaults and cleaner architecture.
 * Local asset loading (no CDN).
 * Improved WPCS compliance, escaping, and sanitization.
 * Ready for translation and WordPress.org standards.

#### 0.1.5

 * Replaced inline `<style>` with proper `admin_enqueue_scripts` and assets/admin.
   css.
 * Adopted unique 5-char prefix `ammsg` for class and options; migration added.

#### 0.1.4

 * Fix: i18n string literal domains, numbered placeholders, translators comments,
   security escaping, tested up to 6.8.

#### 0.1.3

 * Unified textdomain, fixed PHP 8.2 deprecations, added Settings link.

#### 0.1.2

 * Time window rendering, placeholders, timezone handling.

#### 0.1.0

 * Initial release.

## 中繼資料

 *  版本 **1.0.2**
 *  最後更新 **10 個月前**
 *  啟用安裝數 **90+**
 *  WordPress 版本需求 ** 6.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.8**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/admin-maintenance-message/)
 * 標籤:
 * [admin](https://tw.wordpress.org/plugins/tags/admin/)[banner](https://tw.wordpress.org/plugins/tags/banner/)
   [maintenance](https://tw.wordpress.org/plugins/tags/maintenance/)[notice](https://tw.wordpress.org/plugins/tags/notice/)
 *  [進階檢視](https://tw.wordpress.org/plugins/admin-maintenance-message/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/admin-maintenance-message/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/admin-maintenance-message/reviews/)

## 參與者

 *   [ Andreas Grzybowski ](https://profiles.wordpress.org/antman313/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/admin-maintenance-message/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://codekeks.de/)