Created
April 12, 2018 08:37
-
-
Save shivapoudel/fe15ab306142af1261f66aa10fce4c68 to your computer and use it in GitHub Desktop.
WooCommerce - Remove all filters for formatted order total
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 // 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