Skip to content

Instantly share code, notes, and snippets.

@kloon
Last active September 8, 2015 06:32
Embed
What would you like to do?
WooCommerce 2.1 show trailing zeros
<?php
// Show trailing zeros on prices, default is to hide it.
add_filter( 'woocommerce_price_trim_zeros', 'wc_hide_trailing_zeros', 10, 1 );
function wc_hide_trailing_zeros( $trim ) {
// set to false to show trailing zeros
return false;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment