You might want to disable the pricing functionality for Add-Ons Ultimate – for instance, if you are using more than one add-ons plugin and you don’t want Add-Ons Ultimate to update the price.
Just use this snippet:
This file contains 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
<?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' ); |