WP Flash Notices
Admin notices that survive a page reload.
- Flash-style admin notices that display after a redirect
- Stored with the transient API and shown exactly once
- Simple, expressive API for success/error/warning notices
- No dependencies beyond WordPress core
- License
- GPL-2.0-or-later
- Language
- PHP
Frequently asked questions
How do I show a WordPress admin notice after a redirect?
Store the notice before redirecting and render it on the next request. WP Flash Notices does exactly that: the message is saved with the transient API, displayed once on the page the user lands on, and then cleared.
Why do admin notices disappear after a form submission?
Most admin form handlers finish with a redirect to avoid a resubmission prompt, and the redirect ends the request that queued the notice. A flash message survives that hop because it is stored, not printed.
Does the notice show more than once?
No. Each notice is displayed exactly once and removed, so a stale success message cannot reappear on a later page load.
Does it have dependencies?
None beyond WordPress core. It is a small, GPL-2.0-or-later library installed with `composer require foxelabs/wp-flash-notices`.
Learn how we can help you build better.
Questions about a plugin, a licence, or an expert advisor — ask and get a straight answer from the team that wrote the code.