Created
January 31, 2018 09:01
-
-
Save daniloparrajr/82642c7398af29bbc516a5eaece6641b to your computer and use it in GitHub Desktop.
Check if plugin is active on theme
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 | |
if ( in_array( {plugin/path/main-file.php}, apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
// Your code here. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment