PHPackages                             antonioeatgoat/wp-dashboard-notice - 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. antonioeatgoat/wp-dashboard-notice

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

antonioeatgoat/wp-dashboard-notice
==================================

A small library to easily manage notice messages in the WordPress Dashboard

v1.2.0(7y ago)112PHPPHP &gt;5.2

Since Aug 22Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/antonioeatgoat/wp-dashboard-notice)[ Packagist](https://packagist.org/packages/antonioeatgoat/wp-dashboard-notice)[ RSS](/packages/antonioeatgoat-wp-dashboard-notice/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

Notice manager for WordPress Dashboard
======================================

[](#notice-manager-for-wordpress-dashboard)

A small library to easily manage notice messages in the WordPress dashboard

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

[](#installation)

Use [Composer](https://getcomposer.org/) to require the library.

```
composer require antonioeatgoat/wp-dashboard-notice
```

Then include the [Composer](https://getcomposer.org/) autoload file in your project::

```
require_once 'vendor/autoload.php'
```

If that's not an option then clone or download the package and require the `wp-dashboard-notice/autoload.php` file in your code:

```
require_once 'path/to/wp-dashboard-notice/autoload.php';
```

Where `path/to/wp-dashboard-notice/autoload.php` is the absolute path to the `autoload.php` file.

Example
-------

[](#example)

```
$notice = ( new NoticeFactory() )->create(
	'hello-world-notice',
	'Hello World - This is a sample notice',
	array(
		'title'          => 'This is a sample title',
		'show_close_btn' => true,
		'cta_text'       => 'This is a custom CTA!',
		'cta_href'       => '#',
		'dismiss_text'   => "Don't show it again",
		'dismiss_mode'   => 'global',
		'status'         => 'success'
	));
NoticesManager::init()->register_notice($notice);
```

Parameters
----------

[](#parameters)

The notice creations needs three parameters:

- **id:** *(string)* An unique id to identificate it (it is also used as an id attribute in the HTML of the notice message printed).
- **message:** *(string)* The actual notice message.
- **args:** *(array)* Optional. An array of parameters containing more configurations.

Here's how the configurations can be used.

### Custom CTA

[](#custom-cta)

You can print the custom CTA button using these arguments, both of them are required to display the CTA.

- **cta\_text:** The text of the button.
- **cta\_href:** The link where the CTA points to.

### Permanent dismissing

[](#permanent-dismissing)

The notice message can be dismissed permanently, clicking on a specific link. It supports three dismissing modes:

- **none:** *(default)* Notice message cannot be dismissed and dismissing link isn't displayed.
- **global:** Once dismissed, the notice message isn't shown again for nobody.
- **user:** Once dismissed, the notice message is dismissed only for the current user. Other users will continue to see it.

You can print the dismissing link using these arguments, both of them are required to display the link.

- **dismiss\_text:** The text of the link.
- **dismiss\_mode:** The dismissing mode explained above.

### Others

[](#others)

Other arguments of the parameters array are:

- **Title:** *(string)* An eventual title, displayed above the message.
- **status:** The status the notice message. Available values are *"info" (default)*, *"success"*, *"warning"*, *"error"*.
- **show\_close\_btn:** *(bool)* Default *false*. If a button to close the notice message is displayed. **Notce:** This will only close the notice, not dismiss it. On the page refresh it will be displayed again if the code requires it. This is useful when you have a "single time" notice message. That haven't stands permanently on the page, such as the notice message "Plugin activated" when you active a plugin.

###  Health Score

33

↑

LowBetter than 75% of packages

Maintenance45

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~7 days

Total

3

Last Release

2807d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6604b301cd8fff991182c7d45edf602b462e291b6355d97b649b78ee686ece0e?d=identicon)[antonioeatgoat](/maintainers/antonioeatgoat)

---

Top Contributors

[![antonioeatgoat](https://avatars.githubusercontent.com/u/11173091?v=4)](https://github.com/antonioeatgoat "antonioeatgoat (48 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/antonioeatgoat-wp-dashboard-notice/health.svg)

```
[![Health](https://phpackages.com/badges/antonioeatgoat-wp-dashboard-notice/health.svg)](https://phpackages.com/packages/antonioeatgoat-wp-dashboard-notice)
```

###  Alternatives

[jaocero/filachat

FilaChat is a plugin for integrating real-time customer support chat into your application. Provides tools for both customer and agent chat interfaces, with features for managing and maintaining chat conversations.

1813.6k](/packages/jaocero-filachat)

PHPackages © 2026

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