PHP code example of kmix39 / wp-group-admin-notices
1. Go to this page and download the library: Download kmix39/wp-group-admin-notices library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kmix39 / wp-group-admin-notices example snippets
$notices = Kmix39\WP_Group_Admin_Notices\Bootstrap::instance();
$notices->add_notice(
'notice_group_slug',
'notice_group_code',
'notice_message'
);
$notices->remove_notice(
'notice_group_slug',
'notice_group_code'
);
$notices->display_notices(
'notice_group_slug', // Notice group slug
'notice-info' // Notice class
);