[WordPress] 外掛分享: Notices Panel

首頁 › 外掛目錄 › Notices Panel
WordPress 外掛 Notices Panel 的封面圖片
50+
安裝啟用
—
尚無評分
3 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v1.1.0 上架:2026-10-19

外掛標籤

開發者團隊

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

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

原文外掛簡介

Plugins, themes and WordPress itself fill the admin with notices, promos and warnings that push the real content down the page. Notices Panel keeps them out of the way without losing them, and without becoming one more thing to configure.
What makes it different from other notice managers:

Nothing is stored. No options, no database tables, no transients, no per-user state, no external requests. Deactivate it and the site is exactly as before.
Nothing is lost. Notices are moved, not suppressed. They come back on every page load until you dismiss them the usual way, so a security or maintenance warning cannot be silently buried.
Success messages stay in place. Confirmations such as “Post updated” and notices rendered inside forms or table rows are left where WordPress put them.
It works on the rendered page, not on the hooks. Notices printed late by JavaScript are collected too, and the counter goes down when you dismiss a notice, including the ones dismissed via AJAX.
Zero configuration. No settings page. A bell button in the admin bar (top right) shows how many notices are waiting and opens the panel on click. Developers get a single filter.

Customising what is collected
Use the mgsnp_selectors filter to change the CSS selectors of the notices moved into the panel. For example, to collect success confirmations too:
add_filter( 'mgsnp_selectors', function ( $selectors ) {
$selectors[] = '#wpbody-content .notice-success';
$selectors[] = '#wpbody-content .updated';
return $selectors;
} );

Selectors are validated before use: any entry containing characters that do not belong in a plain CSS selector (such as braces, semicolons or slashes) is dropped.

延伸相關外掛

文章
Filter
Mastodon