Last active
June 17, 2021 07:18
-
-
Save Balakrishnan-flycart/e6ac18b4fa8ab02da17315d1491d5189 to your computer and use it in GitHub Desktop.
Woo Discount Rules v2 - Remove you saved message in admin areas
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
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