Created
December 22, 2021 09:26
-
-
Save AnanthFlycart/cf9a4d4f4e13bee554bbce763c438100 to your computer and use it in GitHub Desktop.
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
| // To suppress third party plugin cart line item price strikeout html events | |
| add_action('plugins_loaded', function() { | |
| if(class_exists('\Wdr\App\Router')){ | |
| remove_all_filters('woocommerce_cart_item_price'); | |
| add_filter('woocommerce_cart_item_price', array(\Wdr\App\Router::$manage_discount, 'getCartPriceHtml'), 1000, 3); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment