How to Show Admin Notice on Plugin Activation?

1. Add the code in the Notice Class like Below –

 

2. Include the Notice class file in the Main class of the plugin and register the admin hook in the define_admin_hooks method –

3. Add the code in the Main plugin file to register activation hook –