library notices
An Object-Oriented Wrap for notices displayed near the top of admin pages on WordPress.
wordpruss/notices
An Object-Oriented Wrap for notices displayed near the top of admin pages on WordPress.
- Wednesday, September 6, 2017
- by mystroken
- Repository
- 1 Watchers
- 0 Stars
- 13 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Notices
An Object-Oriented Wrap for notices displayed near the top of admin pages on WordPress., (*1)
Installation
composer require wordpruss/notices
Basic usage
Notices are used to show a User some information. They have four types: success
, warning
, info
or error
. These messages will be displayed at the top of the WordPress admin area. Notices can be used anywhere in the plugin by referencing Notify
, (*2)
<?php
use WordPruss\Notices\Notify;
Notify::error('Test an error notice');
Notify::info('Test an info notice');
Notify::warning('Test a warning notice');
Notify::success('Test a success notice');
// Hook up all the notices
Notify::hook();
dev-master
9999999-dev
https://github.com/wordpruss/notices
An Object-Oriented Wrap for notices displayed near the top of admin pages on WordPress.
Sources
Download
MIT
The Requires
The Development Requires
wordpress
php
notices
php-library
wordpress-development