PHPackages                             wp-user-manager/wp-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wp-user-manager/wp-notices

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wp-user-manager/wp-notices
==========================

An helper library to create persistent and dismissible WordPress admin notices.

1.0.3(7y ago)34.8k↓36.7%GPL-3.0-or-laterPHPPHP &gt;=5.3.2

Since Mar 2Pushed 4y agoCompare

[ Source](https://github.com/WPUserManager/wp-notices)[ Packagist](https://packagist.org/packages/wp-user-manager/wp-notices)[ Docs](https://github.com/alessandrotesoro/wp-notices/)[ RSS](/packages/wp-user-manager-wp-notices/feed)WikiDiscussions master Synced 2d ago

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

wp-notices
==========

[](#wp-notices)

[![Packagist](https://camo.githubusercontent.com/7772dcb4ee75371e0af34107ac7db12310f2497ffdfeb0886e5fc00375e59ae0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c657373616e64726f7465736f726f2f77702d6e6f74696365732e737667)](https://camo.githubusercontent.com/7772dcb4ee75371e0af34107ac7db12310f2497ffdfeb0886e5fc00375e59ae0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c657373616e64726f7465736f726f2f77702d6e6f74696365732e737667) [![Packagist3](https://camo.githubusercontent.com/04a4969137a4350fd0a2df8662a8cb65cbe782361feba3ba11decd5c2aa59df1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c657373616e64726f7465736f726f2f77702d6e6f74696365732e737667)](https://camo.githubusercontent.com/04a4969137a4350fd0a2df8662a8cb65cbe782361feba3ba11decd5c2aa59df1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c657373616e64726f7465736f726f2f77702d6e6f74696365732e737667) [![Packagist2](https://camo.githubusercontent.com/c493bd3bddf4675eca243298e97c489ad8672eaecea7f853448f0b754b3f07fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616c657373616e64726f7465736f726f2f77702d6e6f74696365732e737667)](https://camo.githubusercontent.com/c493bd3bddf4675eca243298e97c489ad8672eaecea7f853448f0b754b3f07fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616c657373616e64726f7465736f726f2f77702d6e6f74696365732e737667) [![PHP from Packagist](https://camo.githubusercontent.com/9dfebecd548f4ffdc48e75ea70e02198a8f0686ccde564bb6ba6ff89d99d7185/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616c657373616e64726f7465736f726f2f77702d6e6f74696365732e737667)](https://camo.githubusercontent.com/9dfebecd548f4ffdc48e75ea70e02198a8f0686ccde564bb6ba6ff89d99d7185/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616c657373616e64726f7465736f726f2f77702d6e6f74696365732e737667) [![Github commits (since latest release)](https://camo.githubusercontent.com/4bc1180caa0450aead5a94d6211954849209f3b4eb440b51324e9626bd517624/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d6974732d73696e63652f616c657373616e64726f7465736f726f2f77702d6e6f74696365732f6c61746573742e737667)](https://camo.githubusercontent.com/4bc1180caa0450aead5a94d6211954849209f3b4eb440b51324e9626bd517624/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d6974732d73696e63652f616c657373616e64726f7465736f726f2f77702d6e6f74696365732f6c61746573742e737667)

> An helper library to create persistent and dismissible WordPress admin notices.

Installation
------------

[](#installation)

Composer is required.

```
composer require alessandrotesoro/wp-notices
```

Usage
-----

[](#usage)

Import the library and assign it your own namespace:

```
use TDP\WP_Notice as MYNOTICES;
```

Create a wrapper function:

```
function mynotices() {
	return MYNOTICES::instance();
}
```

Create a global notice for all users:

```
mynotices()->register_notice( 'my_notice', 'warning', 'This is the message' ) );
```

Or create a notice for the currently logged in user only:

```
mynotices()->register_notice( 'my_notice', 'warning', 'This is the message', array( 'scope' => 'user' ) ) );
```

Available parameters
--------------------

[](#available-parameters)

ParameterTypeOptionsDefaultsDescriptionidstringRequired ID to identify the noticetypestringsuccess, warning, error, infoDetermine the type of noticemessagestringThe message you wish to display within WordPressargsarrayscope (global, user), dismissible (true/false), cap, classscope = global, dismissible = trueAdditional settings available for the notice

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~151 days

Total

4

Last Release

2592d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33641775?v=4)[WP User Manager](/maintainers/wpusermanager)[@WPUserManager](https://github.com/WPUserManager)

---

Top Contributors

[![alessandrotesoro](https://avatars.githubusercontent.com/u/1590958?v=4)](https://github.com/alessandrotesoro "alessandrotesoro (2 commits)")[![polevaultweb](https://avatars.githubusercontent.com/u/1770201?v=4)](https://github.com/polevaultweb "polevaultweb (1 commits)")

---

Tags

wordpressnotices

### Embed Badge

![Health badge](/badges/wp-user-manager-wp-notices/health.svg)

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

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k463.8k2](/packages/roots-bedrock)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[roots/wp-stage-switcher

WordPress plugin that allows you to switch between different environments from the admin bar

383469.2k3](/packages/roots-wp-stage-switcher)[vinkla/wordplate

The WordPlate boilerplate

2.2k5.3k](/packages/vinkla-wordplate)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19251.4k3](/packages/civicrm-civicrm-drupal-8)

PHPackages © 2026

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