Messages are used to show a User of the plugin some information. They have three types: success
, warning
or error
. These messages will be displayed at the top of the WordPress admin area. Messages can be used anywhere in the plugin by referencing Notifier
.
use Herbert\Framework\Notifier;
Notifier::success('Finished installing');
Notifier::warning('We recommend clearing your cache');
Notifier::error('Something has gone wrong');