Call to “admin_notices” hook from a static method

Issue got solved by doing two things Removed primary calling from /** * Initialize the activation works of the plugin. */ function awraq_activate_plugin() { //removed } register_activation_hook(__FILE__, ‘awraq_activate_plugin’); Added the call to “plugins_loaded” /** * Initialize the plugin. */ function awraq_init_plugin() { if (Init::activate() != TRUE) { deactivate_plugins(plugin_basename(__FILE__)); //added below Notice::error(‘Plugin got Deactivated. Please check … Read more