Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save AnanthFlycart/e6f0593764a2bac2dff331cb8d186e40 to your computer and use it in GitHub Desktop.

Select an option

Save AnanthFlycart/e6f0593764a2bac2dff331cb8d186e40 to your computer and use it in GitHub Desktop.
// Disable before Mini Cart Recalculate Cart Totals
add_action('advanced_woo_discount_rules_after_initialize', function() {
if(class_exists('\Wdr\App\Router')) {
remove_filter('woocommerce_before_mini_cart', array(\Wdr\App\Router::$manage_discount, 'reCalculateCartTotal'), 10);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment