I am trying to display a notice in admin panel when I activate my test plugin.
How can I display that? What\'s that method?
I've developed amarkal-admin-notification - a script that lets you add static/dismissible admin notices and handles the dismissal for you. This script is a module within the Amarkal WordPress framework.
For example:
amarkal_admin_notification( 'my-error-notice', __('Oh snap! This is an error message.','slug'), 'error');