Auto deactivate does not work
-
If you deactivate the Events Manager plugins you lose your admin pannel. To correct it you need to switch two lines of code :
Your code :
wp_die(‘<b>EM OpenStreetMaps</b> needs Events Manager to be installed and activated.<br>This plugin has been deactivated…’, ‘Plugin dependency check’, array(‘back_link’ => true));
deactivate_plugins(plugin_basename(__FILE__));Correct code :
deactivate_plugins(plugin_basename(__FILE__));
wp_die(‘<b>EM OpenStreetMaps</b> needs Events Manager to be installed and activated.<br>This plugin has been deactivated…’, ‘Plugin dependency check’, array(‘back_link’ => true));Regards
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Auto deactivate does not work’ is closed to new replies.