Created
October 15, 2020 11:30
-
-
Save Balakrishnan-flycart/bb2eeead81f124157812ebefebc6f50e to your computer and use it in GitHub Desktop.
Woo Discount Rules v2 - Remove Duplicate promotion messages
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_action('woocommerce_before_cart', function (){ | |
| if(class_exists('\Wdr\App\Router')){ | |
| remove_action('woocommerce_before_cart', array(\Wdr\App\Router::$manage_discount, 'showAppliedRulesMessages')); | |
| remove_action('woocommerce_before_cart', array(\Wdr\App\Router::$manage_discount, 'displayPromotionMessages')); | |
| } | |
| }, 11); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment