Created
May 14, 2012 18:01
-
-
Save wpscholar/2695372 to your computer and use it in GitHub Desktop.
Test if a WordPress plugin is active
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Test if a WordPress plugin is active | |
*/ | |
if ( is_plugin_active('plugin-directory/plugin-file.php') ) { | |
// the plugin is active | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment