rockschtar / wordpress-notices
WordPress Must Use Plugin that helps to display notices in wordpress admin area. Developed for usage with composer based based WordPress projects (roots/bedrock or johnpbloch/wordpress).
Installs: 7 446
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:wordpress-muplugin
Requires
- php: >=7.1
- myclabs/php-enum: ^1.6
- rockschtar/typed-arrays: 0.3.*
Requires (Dev)
- brain/monkey: ^2.2
- phpunit/phpunit: 7.5.*
README
rockschtar/wordpress-notices
Description
WordPress Must Use Plugin that helps to display notices in WordPress admin area. Developed for usage with composer based WordPress projects (roots/bedrock or johnpbloch/wordpress).
Requirements
- PHP 8.0+
- Composer to install
Install
composer require rockschtar/wordpress-notices
License
rockschtar/wordpress-notices is open source and released under MIT license. See LICENSE.md file for more info.
Usage
php
add_action('admin_init', function() { add_notice_success('Hello World'); });
javascript
RSAdminNotices.addError('This is a error'); RSAdminNotices.addSuccess('This is a success'); RSAdminNotices.addInfo('This is a info'); RSAdminNotices.addWarning('This is a warning');