Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created December 11, 2019 12:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save plugin-republic/3fe309aed3a571110e39273305ac2bcd to your computer and use it in GitHub Desktop.
<?php
remove_action( 'woocommerce_before_calculate_totals', 'pewc_wc_calculate_total', 10, 1 );
remove_filter( 'woocommerce_cart_item_price', 'pewc_minicart_item_price', 10, 3 );
remove_action( 'woocommerce_cart_calculate_fees', 'pewc_cart_calculate_fees', 10 );
function prefix_remove_actions() {
remove_action( 'woocommerce_before_calculate_totals', 'pewc_wc_calculate_total', 10, 1 );
remove_filter( 'woocommerce_cart_item_price', 'pewc_minicart_item_price', 10, 3 );
remove_action( 'woocommerce_cart_calculate_fees', 'pewc_cart_calculate_fees', 10 );
}
add_action( 'init', 'prefix_remove_actions' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment