Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Balakrishnan-flycart/bb2eeead81f124157812ebefebc6f50e to your computer and use it in GitHub Desktop.
Save Balakrishnan-flycart/bb2eeead81f124157812ebefebc6f50e to your computer and use it in GitHub Desktop.
Woo Discount Rules v2 - Remove Duplicate promotion messages
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