When I deactive WooCommerce Plugin, I want to take a action in My plugin
There’s two ways to do this, you can either check for the main plugin file or you can check for the WooCommerce class. When I make a plugin dependent on some other plugin I usually check for the plugin file, but for WooCommerce I check for the WooCommerce class. <?php function yourplugin_init() { if( !function_exists( … Read more