Last active
August 29, 2015 14:06
-
-
Save erikasarti/6c548ebac14e67f9c2a3 to your computer and use it in GitHub Desktop.
Checar se um plugin está instalado no WordPress, dentro do tema
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
include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | |
if ( is_plugin_active( 'pasta-do-plugin/arquivo-do-plugin.php' ) ) { | |
// Aqui vai o código do que você quer fazer | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment