wordpruss / notices
An Object-Oriented Wrap for notices displayed near the top of admin pages on WordPress.
Installs: 25
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/wordpruss/notices
Requires
- php: >=5.5.9
- wordpruss/contracts: ~1.0.0
Requires (Dev)
- phpunit/phpunit: 5.7
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2025-10-23 13:08:51 UTC
README
An Object-Oriented Wrap for notices displayed near the top of admin pages on WordPress.
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
<?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();