kmix39 / wp-group-admin-notices
A library for WordPress that displays group notices on the admin screen.
Installs: 54
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/kmix39/wp-group-admin-notices
Requires
- php: >=7.0
README
About
A library for WordPress that displays group notices on the admin screen.
Install
$ composer require kmix39/wp-group-admin-notices
How to use
Start
<?php
$notices = Kmix39\WP_Group_Admin_Notices\Bootstrap::instance();
Add group notice
<?php
$notices->add_notice(
'notice_group_slug',
'notice_group_code',
'notice_message'
);
Remove group notice
<?php
$notices->remove_notice(
'notice_group_slug',
'notice_group_code'
);
Display group notices
<?php
$notices->display_notices(
'notice_group_slug', // Notice group slug
'notice-info' // Notice class
);