WP Manifestindependent plugin directory
manifest / admin / classic-notice-blocker

Classic Notice Blocker

Classic Notice Blocker gives you full control over the admin notices cluttering your WordPress dashboard.

by Eric Jagwara · github.com/ericjagwara/classic-notice-blocker · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/ericjagwara/classic-notice-blocker/archive/refs/heads/main.zip

Block unwanted WordPress dashboard notices with granular control — keep your admin clean and focused.

Description

Classic Notice Blocker gives you full control over the admin notices cluttering your WordPress dashboard. Choose from four blocking modes to suit your workflow:

  • Block All Notices — Completely hides every notice. Ideal for client sites.
  • Block Non-Critical — Keeps errors and warnings visible while hiding everything else. Recommended for most sites.
  • Block Matching Keywords — Target specific notices by keyword (e.g., "upgrade", "premium", "pro").
  • Block All Except Whitelisted — Only displays notices matching keywords you trust (e.g., "error", "critical", "security").

How it works:

The plugin uses a reliable CSS + JavaScript approach that works regardless of when other plugins register their notices. A debounced MutationObserver also catches dynamically loaded (AJAX) notices automatically.

Developer-friendly:

  • cnb_bypass_filtering filter — return true to temporarily disable notice blocking.
  • Lightweight, single-file plugin with no external dependencies.
  • Fully translatable with complete text domain support.

Installation

  1. Upload the classic-notice-blocker folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to Settings → Notice Blocker to choose your blocking mode.

Frequently Asked Questions

Will this hide important error messages?

Only if you choose "Block All" mode. The recommended "Block Non-Critical" mode keeps errors and warnings visible. You can also use "Whitelist" mode to ensure critical notices always appear.

Does it work with notices added by other plugins?

Yes. The CSS-based approach hides notices regardless of when or how they are added. The JavaScript layer also catches notices loaded via AJAX after the initial page load.

Can I temporarily disable the plugin without deactivating it?

Developers can use the cnb_bypass_filtering filter. For example, adding add_filter( 'cnb_bypass_filtering', '__return_true' ); will disable all blocking.

Does it clean up after itself?

Yes. When you delete (not just deactivate) the plugin, all settings are removed from the database.

Screenshots

  1. Settings page with mode selection and keyword configuration.

Changelog

1.0.0

  • Initial release.
  • Four blocking modes: Block All, Block Non-Critical, Keyword Blocklist, Keyword Whitelist.
  • CSS + JavaScript layered approach for reliable notice hiding.
  • Debounced MutationObserver for AJAX-loaded notices.
  • Developer filter: cnb_bypass_filtering.
  • Full i18n support.

Upgrade Notice

1.0.0

Initial release.