How to check if WooCommerce is active?

Posted by Prem Tiwari | Updated on

Most WooCommerce plugins do not need to run unless WooCommerce is already active. You can wrap your plugin in a check to see if WooCommerce is installed:

Note: This check will fail if the WC plugin folder is named anything other than WooCommerce.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers