Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AshlinRejo/45578dbb10721c184916fd433d29000a to your computer and use it in GitHub Desktop.
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
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