How to check a specific plugin is activated or not ?

While working on the EDD (Easy Digital Downloads) add-on of Analytify, I was looking a way to check if Easy Digital Downloads plugin is already activated or not. So, a message should appear to our users that “They should Activate Easy Digital Downloads to make the Analytify for EDD work properly. ”

Almost every plugin has a class name, we can use php function ‘class_exists’ to know if it exists or not. Following is the code which can be used to check a plugin is activate or not .

If you know any other way to achieve the same task, do let us know.  Thanks.

How to find your purchase code from CodeCanyon or Themeforest ?

Don’t worry, It’s very easy to find your purchase code. Just go to

You will see your all downloaded items. see Next to your item, there is a download button.

You will click on the “License certificate & purchase code” option. This will download a txt file. Within this text file, you will find the license information for the product, including the purchase code (like below)

Item Purchase Code: de4d99d8-Iam-code-d066d1acd5a3

copy paste and send me this code for validating your purchase and add you to Support forums.