Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Balakrishnan-flycart/e6ac18b4fa8ab02da17315d1491d5189 to your computer and use it in GitHub Desktop.
Save Balakrishnan-flycart/e6ac18b4fa8ab02da17315d1491d5189 to your computer and use it in GitHub Desktop.
Woo Discount Rules v2 - Remove you saved message in admin areas
if(class_exists('\Wdr\App\Router')){
remove_filter('woocommerce_order_formatted_line_subtotal', array(\Wdr\App\Router::$manage_discount, 'orderSubTotalDiscountDetails'),1000);
remove_action('woocommerce_after_order_itemmeta', array(\Wdr\App\Router::$manage_discount, 'orderItemMetaDiscountDetails'),1000);
remove_action('woocommerce_get_formatted_order_total', array(\Wdr\App\Router::$manage_discount, 'displayTotalSavingsInOrderAfterOrderTotal'), 10);
remove_action('woocommerce_admin_order_totals_after_total', array(\Wdr\App\Router::$manage_discount, 'displayTotalSavingsThroughDiscountInOrder'), 10);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment