Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

Save AnanthFlycart/cf9a4d4f4e13bee554bbce763c438100 to your computer and use it in GitHub Desktop.
// 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