WooCommerce Conditional 条件判定
WooCommerceで条件式作るとき
if (class_exists('Woocommerce')) {
$shop_id = wc_get_page_id('shop');
}is_product_taxonomy()
//https://docs.woocommerce.com/document/create-a-plugin/
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
// Put your plugin code here
}