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(3y ago)1035.5k↑248.5%3MITPHPPHP &gt;=5.6

Since Sep 23Pushed 3y 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 3d 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

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity45

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

1131d 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

[johndoh/contextmenu

Adds context menus with common tasks to various parts of Roundcube

10680.0k1](/packages/johndoh-contextmenu)[luwes/craft-codemirror

Add the awesome in-browser code editor CodeMirror as a field type.

1710.1k](/packages/luwes-craft-codemirror)[jreisdorf/kirby-static-site-generator

Static site generator plugin for Kirby 3, 4 and 5

262.3k](/packages/jreisdorf-kirby-static-site-generator)[stevenmaguire/zurb-foundation-laravel

Build HTML form elements for Foundation inside Laravel

193.8k](/packages/stevenmaguire-zurb-foundation-laravel)

PHPackages © 2026

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