Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xlplugins/79931bf94dbe628e87d30317a4adadae to your computer and use it in GitHub Desktop.
Save xlplugins/79931bf94dbe628e87d30317a4adadae to your computer and use it in GitHub Desktop.
BUMp:Disable country based pricing compatibility file
add_action( 'woocommerce_after_calculate_totals', function () {
if ( ! class_exists( 'WFOB_Product_Price_Based_Country' ) ) {
return;
}
WFOB_Common::remove_actions( 'wfob_product_raw_data', 'WFOB_Product_Price_Based_Country', 'change_price_data' );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment