Created
November 13, 2020 09:15
-
-
Save ypadd/b3a16390d058d435bd461dec62e1dacb to your computer and use it in GitHub Desktop.
[Is Woocommerce active?] check if woocommerce is active #Woocommerce
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