Skip to content

Instantly share code, notes, and snippets.

@shivapoudel
Created April 12, 2018 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shivapoudel/fe15ab306142af1261f66aa10fce4c68 to your computer and use it in GitHub Desktop.
Save shivapoudel/fe15ab306142af1261f66aa10fce4c68 to your computer and use it in GitHub Desktop.
WooCommerce - Remove all filters for formatted order total
<?php // Do not include this if already open!
/**
* Code goes in theme functions.php.
*/
add_action( 'plugins_loaded', 'remove_wc_get_formatted_order_total_filters' );
/**
* Remove all filters for WC formatted order total.
*/
function remove_wc_get_formatted_order_total_filters() {
remove_all_filters( 'woocommerce_get_formatted_order_total' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment