Created
October 9, 2020 07:28
-
-
Save Balakrishnan-flycart/38a225c01f2854c49df3a6fbfd55bcc2 to your computer and use it in GitHub Desktop.
Woo Discount Rules v2 - Combatible with Donation For Woocommerce by wpexpertsio
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('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