Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Balakrishnan-flycart/a5785b6b745e6f3285771879b3ee1f06 to your computer and use it in GitHub Desktop.
Save Balakrishnan-flycart/a5785b6b745e6f3285771879b3ee1f06 to your computer and use it in GitHub Desktop.
Woo Discount Rules v2 - Remove freeshipping initialize
add_action('advanced_woo_discount_rules_loaded', function (){
remove_action('woocommerce_shipping_init', 'WDRPro\App\Rules\FreeShipping::mayHaveFreeShipping');
}, 11);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment