=== ID Admin Notices ===
Contributors: insightdezign
Tags: admin notices, dismiss notices, hide notices, notice manager, cleanup
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.2
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Smart admin notice management with role-based visibility. Keeps errors and warnings visible to everyone while hiding plugin nags from non-designated users.

== Description ==

Tired of the wall of admin notices that keep coming back every time you reload the page? ID Admin Notices gives you smart, role-based control over which notices your team sees.

**How it works:**

* **Errors, warnings, and success notices** are always visible to everyone — never touched
* **Info notices and plugin nags** are only shown to designated users, with persistent dismiss buttons
* **Update notices** are only shown to designated users, displayed as-is
* Non-designated administrators see a clean admin with only operational notices

**Features:**

* Role-based notice visibility — choose which admins see nags and update notices
* Persistent dismiss for info and nag notices — stays hidden across page loads
* "Hidden notices" banner shows how many notices are dismissed with a toggle to peek
* Settings page to designate users and manage dismissed notices
* Auto-prunes dismissed entries older than 90 days
* Restore individual notices or all at once

== Installation ==

1. Upload the `id-admin-notices` folder to `/wp-content/plugins/`.
2. Activate the plugin through the Plugins menu.
3. Visit Settings > Admin Notices to configure which users see nag notices.
4. Dismiss any info or nag notice — it won't come back.

== Frequently Asked Questions ==

= Who can see info notices and plugin nags? =

By default, all administrators see them. You can restrict this to specific users from Settings > Admin Notices.

= What happens for non-designated users? =

They see a clean admin with only errors, warnings, and success notices. Info nags and update notices are hidden via CSS.

= What notices can be dismissed? =

Only info notices (`.notice-info`) and generic nag notices. Errors, warnings, success notices, and update nags cannot be dismissed.

= What if I want a notice back? =

Go to Settings > Admin Notices and click "Restore" next to the notice, or click "Restore All" to bring back everything.

= What happens if a notice changes? =

Each notice is identified by its text content. If the content changes, it's treated as a new notice and will appear again.

= What happens when I deactivate the plugin? =

All notices return to normal WordPress behavior. Your settings and dismissed notices list are preserved in case you reactivate.

== Changelog ==

= 2.0.0 =
* New: Role-based notice visibility — designate which admins see info nags and update notices.
* New: Non-designated users get a clean admin (only errors, warnings, and success notices).
* New: Settings page with user picker under Settings > Admin Notices.
* New: Auto-prune dismissed notices older than 90 days.
* Changed: Errors, warnings, and success notices are no longer modified (no dismiss buttons added).
* Changed: Update nags are shown to designated users without dismiss buttons.
* Changed: Only info and generic nag notices get persistent dismiss buttons.

= 1.0.0 =
* Initial release.
