WPBrigade Blog
Latest WordPress Tutorials, Lists and Resources
-
Last updated on August 29th, 2026 by Muhammad Adnan
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 for a way to check if the 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 the 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. add_action( ‘admin_notices’, array( &$this, ‘analytify_edd_plugin_notices’ )); public function analytify_edd_plugin_notices()…
