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.

0Shares

Related posts:

Leave a Reply

Your email address will not be published. Required fields are marked *