Flip default status of price_trim_zeros
#4828 #4823 enabled with add_filter( 'woocommerce_price_trim_zeros', '__return_true’ );
This commit is contained in:
parent
ca782212de
commit
a67c91db7b
|
@ -320,7 +320,7 @@ function wc_price( $price, $args = array() ) {
|
|||
$price = apply_filters( 'raw_woocommerce_price', floatval( $price ) );
|
||||
$price = apply_filters( 'formatted_woocommerce_price', number_format( $price, $num_decimals, $decimal_sep, $thousands_sep ), $price, $num_decimals, $decimal_sep, $thousands_sep );
|
||||
|
||||
if ( apply_filters( 'woocommerce_price_trim_zeros', true ) && $num_decimals > 0 ) {
|
||||
if ( apply_filters( 'woocommerce_price_trim_zeros', false ) && $num_decimals > 0 ) {
|
||||
$price = wc_trim_zeros( $price );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue