PHPackages                             juvo/wp-admin-notices - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. juvo/wp-admin-notices

ActiveLibrary

juvo/wp-admin-notices
=====================

Adds a wrapper layer to store notices for wptrt/admin-notices

v1.0.2(5y ago)03.5k↓100%PHPPHP &gt;=7.0.0

Since May 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/JUVOJustin/wp-admin-notices)[ Packagist](https://packagist.org/packages/juvo/wp-admin-notices)[ RSS](/packages/juvo-wp-admin-notices/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

WP Admin Notices
================

[](#wp-admin-notices)

This is an extension for the [wptrt/admin-notices](https://github.com/WPTRT/admin-notices) package to store notices in a transient. The goal is to allow a dynamic storing process throughout WordPress. Since this package is only a proxy that stores the notices in the database, you can find examples and options in the [wptrt/admin-notices](https://github.com/WPTRT/admin-notices) repository.

Usage
-----

[](#usage)

```
// Display stored notices
add_action( 'admin_init', function() {
   $notices = new \juvo\WordPressAdminNotices\Manager();
   $notices->notices();
} );

// Add a notice.
\juvo\WordPressAdminNotices\Manager::add((string) $id, (string) $title, (string) $content, (array) $options);

// Remove a notice.
\juvo\WordPressAdminNotices\Manager::remove((string) $id, (bool) $onlyGlobal);

//Example: Check if Advanced Custom Fields Pro is installed
if ( ! class_exists( 'acf_pro' ) ) {
   // Add a notice.
   Manager::add( "missing_plugin", "Required plugin missing","The advanced custom fields plugin is required for this plugin to work" ), [ "type" => "error" ] );
} else {
   Manager::remove( "missing_plugin");
}
```

[wptrt/admin-notices](https://github.com/WPTRT/admin-notices) parameters are fully supported. If a notice with global scope is dismissed, it will be automatically removed from the transient. Additionally a `max_age` parameter can be passed to the `Manager` constructor. All notices older than this value will be removed. Notices with a user scope are not removed from the transient by dismissing them. They will only be removed if they exceed the `max_age`. The transient itself does not expire at all.

### Composer

[](#composer)

From the command line:

```
composer require juvo/wp-admin-notices
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~97 days

Total

3

Last Release

1993d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32efecde6068b3efb5bd8edbfc59500f23c7047b43f7846790925f73e23317a6?d=identicon)[JUVOJustin](/maintainers/JUVOJustin)

---

Top Contributors

[![JUVOJustin](https://avatars.githubusercontent.com/u/30726576?v=4)](https://github.com/JUVOJustin "JUVOJustin (3 commits)")

---

Tags

wordpressnoticeswptrt

### Embed Badge

![Health badge](/badges/juvo-wp-admin-notices/health.svg)

```
[![Health](https://phpackages.com/badges/juvo-wp-admin-notices/health.svg)](https://phpackages.com/packages/juvo-wp-admin-notices)
```

###  Alternatives

[roots/wordpress

WordPress is open source software you can use to create a beautiful website, blog, or app.

19116.9M254](/packages/roots-wordpress)[wpstarter/framework

The WpStarter Framework - Laravel Framework for WordPress

1810.1k4](/packages/wpstarter-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
