Last active
June 13, 2019 06:58
-
-
Save imran-khan1/0abbe0a99180eee5598f3216cf996ab8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* Check if WooCommerce is active | |
**/ | |
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
// Put your plugin code here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment