Created
September 27, 2013 14:41
-
-
Save artboard-studio/6729644 to your computer and use it in GitHub Desktop.
WordPress: if plugin is installed and activated
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 include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); ?> | |
<?php is_plugin_active($plugin) ?> | |
// example: | |
<?php | |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | |
If (is_plugin_active('plugin-directory/plugin-file.php')) { | |
//plugin is activated | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment