2017 © Pedro Peláez
 

wordpress-plugin dobby

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

image

tfrommen/dobby

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

  • Thursday, September 28, 2017
  • by tfrommen
  • Repository
  • 4 Watchers
  • 31 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Dobby

Version Status Downloads License, (*1)

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

Installation

Install with Composer:, (*3)

composer require tfrommen/dobby

Or:, (*4)

  1. Download ZIP.
  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

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

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)., (*6)

Dobby in Action, (*7)

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., (*8)

\tfrommen\Dobby\FILTER_THRESHOLD (dobby.threshold)

This filter lets you customize the minimum number of admin notices required for Dobby to take action. The default value is 1., (*9)

Usage Example:, (*10)

<?php
/**
 * Filter the minimum number of admin notices required for Dobby to take action.
 *
 * @param int $threshold Required minimum number of admin notices.
 */
add_filter( \tfrommen\Dobby\FILTER_THRESHOLD, function () {

    return 3;
} );

The Versions

28/09 2017

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

admin notices dobby

20/09 2017

v1.3.0

1.3.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

admin notices dobby

02/08 2017

v1.2.1

1.2.1.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

admin notices dobby

30/07 2017

v1.2.0

1.2.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

admin notices dobby

23/07 2017

v1.1.1

1.1.1.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

admin notices dobby

17/07 2017

v1.1.0

1.1.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

admin notices dobby

17/07 2017

v1.0.1

1.0.1.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

admin notices dobby

16/07 2017

v1.0.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.4

 

admin notices dobby