PHPackages                             afragen/wp-dismiss-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. afragen/wp-dismiss-notice

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

afragen/wp-dismiss-notice
=========================

Library for time dismissible WordPress admin notices.

0.3.7(2y ago)926.6k—2.6%3MITPHPPHP &gt;=5.6

Since Sep 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/afragen/wp-dismiss-notice)[ Packagist](https://packagist.org/packages/afragen/wp-dismiss-notice)[ RSS](/packages/afragen-wp-dismiss-notice/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (18)Used By (3)

WP Dismiss Notice
=================

[](#wp-dismiss-notice)

Add time dismissible admin notices to WordPress. Fork of

Instuctions
-----------

[](#instuctions)

Initialize the class.

`new \WP_Dismiss_Notice();` in your project.

### Admin notice format.

[](#admin-notice-format)

You must add `data-dismissible='-'` to the admin notice div class. `` values are from one day '1' to 'forever'. Default timeout is 14 days. The `` should be some unique value based upon the admin notice that you wish to dismiss.

Example using a 14 day dismissible notice.

```
...
```

Use the filter `dismiss_notice_vendor_dir` if you have set the composer `vendor-dir` to a non-standard location.

```
/**
 * Filter composer.json vendor directory.
 * Some people don't use the standard vendor directory.
 *
 * @param string Composer vendor directory.
 */
$vendor_dir       = apply_filters( 'dismiss_notice_vendor_dir', '/vendor' );

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity44

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

Recently: every ~14 days

Total

17

Last Release

1084d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82779a185fccde41e1dd3b914bde84cd6be76c8dcb8f6b983f461c8f5687a87e?d=identicon)[afragen](/maintainers/afragen)

---

Top Contributors

[![afragen](https://avatars.githubusercontent.com/u/1296790?v=4)](https://github.com/afragen "afragen (26 commits)")

### Embed Badge

![Health badge](/badges/afragen-wp-dismiss-notice/health.svg)

```
[![Health](https://phpackages.com/badges/afragen-wp-dismiss-notice/health.svg)](https://phpackages.com/packages/afragen-wp-dismiss-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)
