PHPackages                             tfrommen/dobby - 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. [Admin Panels](/categories/admin)
4. /
5. tfrommen/dobby

ActiveWordpress-plugin[Admin Panels](/categories/admin)

tfrommen/dobby
==============

Dobby, the friendly Admin Elf, takes care of all your (unwanted) admin notices.

v1.4.0(5y ago)36104[1 issues](https://github.com/tfrommen/Dobby/issues)MITPHPPHP &gt;=5.4

Since Jul 16Pushed 5y ago4 watchersCompare

[ Source](https://github.com/tfrommen/Dobby)[ Packagist](https://packagist.org/packages/tfrommen/dobby)[ RSS](/packages/tfrommen-dobby/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (8)Dependencies (4)Versions (9)Used By (0)

Dobby
=====

[](#dobby)

[![Version](https://camo.githubusercontent.com/f85b763cc09a8c661e04f677188ee0ac4c7ebf72d84200f5e3b839f02d7ba5b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7466726f6d6d656e2f646f6262792e737667)](https://packagist.org/packages/tfrommen/dobby)[![Status](https://camo.githubusercontent.com/0516d1b16221bb9cbc5f57f91e1f235b1b6aaee353113f6d168996f670c9a75d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d6163746976652d627269676874677265656e2e737667)](https://github.com/tfrommen/Dobby)[![Downloads](https://camo.githubusercontent.com/d8c880268fb99230922385ad890cd8bb069b5af13dcb0a6b6f654b15f3a1dd8c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7466726f6d6d656e2f646f6262792e737667)](https://packagist.org/packages/tfrommen/dobby)[![License](https://camo.githubusercontent.com/62ba03cb352ba3940d8432c4705601dd6f69b31780e32cb22add7c2006b767ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7466726f6d6d656e2f646f6262792e737667)](https://packagist.org/packages/tfrommen/dobby)

> Dobby, the friendly Admin Elf, takes care of all your (unwanted) admin notices.

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

[](#installation)

Install with [Composer](https://getcomposer.org):

```
composer require tfrommen/dobby
```

Or:

1. [Download ZIP](https://github.com/tfrommen/Dobby/releases).
2. Upload contents to the `/wp-content/plugins/` directory on your web server.
3. Activate the plugin through the *Plugins* menu in WordPress.
4. See only a single admin notice, if at all.

### Requirements

[](#requirements)

This plugin **requires PHP 5.4** or higher, but you really **should be using PHP 7** or higher, as we all know.

Usage
-----

[](#usage)

Dobby captures everything that gets printed on one of the admin notice hooks (i.e., `network_admin_notices`, `user_admin_notices`, `admin_notices` and `all_admin_notices`), and hides it, for now. In case Dobby did capture anything, he will inform you (yes, via an admin notice).

[![Dobby in Action](assets/images/dobby.gif)](assets/images/dobby.gif)

### Filters

[](#filters)

In order to customize certain aspects of the plugin, it provides you with several filters. For each of these, a short description as well as a code example on how to alter the default behavior is given below. Just put the according code snippet in your theme's `functions.php` file or your *customization* plugin, or to some other appropriate place.

#### `\tfrommen\Dobby\FILTER_THRESHOLD` (`dobby.threshold`)

[](#tfrommendobbyfilter_threshold-dobbythreshold)

This filter lets you customize the minimum number of admin notices required for Dobby to take action. The default value is `1`.

**Usage Example:**

```
