-
-
Save AshlinRejo/45578dbb10721c184916fd433d29000a to your computer and use it in GitHub Desktop.
Discount rules v2: Compatible with WooCommerce Shipping Per Product v2 to load free shipping with per product shipping
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
add_filter('woocommerce_per_product_shipping_ship_via', function ($ship_via){ | |
$ship_via[] = 'wdr_free_shipping'; | |
return $ship_via; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment