shshanker
9/8/2015 - 6:32 AM

WooCommerce 2.1 show trailing zeros

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;
}
?>