Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Balakrishnan-flycart/38a225c01f2854c49df3a6fbfd55bcc2 to your computer and use it in GitHub Desktop.
Save Balakrishnan-flycart/38a225c01f2854c49df3a6fbfd55bcc2 to your computer and use it in GitHub Desktop.
Woo Discount Rules v2 - Combatible with Donation For Woocommerce by wpexpertsio
add_filter('advanced_woo_discount_rules_exclude_hooks_from_removing', function($allowed_hooks){
if(isset($allowed_hooks['woocommerce_before_calculate_totals'])){
unset($allowed_hooks['woocommerce_before_calculate_totals']);
}
return $allowed_hooks;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment