Skip to content

Instantly share code, notes, and snippets.

Last active September 8, 2015 06:32
What would you like to do?
WooCommerce 2.1 show trailing zeros
// 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