2017 © Pedro Peláez
 

library wp-notify

A small notification class to manage your WordPress Admin Notifications.

image

wpplex/wp-notify

A small notification class to manage your WordPress Admin Notifications.

  • Sunday, June 28, 2015
  • by omarabid
  • Repository
  • 1 Watchers
  • 3 Stars
  • 491 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

wp-notify

A small notification class to manage your WordPress Admin Notifications., (*1)

Usage

First, you init your class with a custom prefix (namespace for your notifications), (*2)

$notify = new wpplex\WP_Notify\WP_Notify( 'my-notif' );

Create your first notification, (*3)

$id = 'notif-xxy';
$content = 'some random notif text';
$type = 'error';
$hide_button = true;
$notify->add_notification( $id, $content, $type, $hide_button );

Display your notification, (*4)

$id = 'notif-xxy';
$display_count = 20; // times
$notify->display_notification( $id, $display_count );

Hide your notification, (*5)

$id = 'notif-xxy';
$notify->hide_notification( $id );

The Versions

28/06 2015

dev-master

9999999-dev http://omarabid.com

A small notification class to manage your WordPress Admin Notifications.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

wordpress notifications

29/04 2015

1.0.0

1.0.0.0 http://omarabid.com

A small notification class to manage your WordPress Admin Notifications.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

wordpress notifications