Add formatted_woocommerce_price filter.

This commit is contained in:
Gerhard 2013-11-20 10:40:29 +02:00
parent 922406b67b
commit 475e9abe83
2 changed files with 2 additions and 1 deletions

View File

@ -320,7 +320,7 @@ function woocommerce_price( $price, $args = array() ) {
$thousands_sep = wp_specialchars_decode( stripslashes( get_option( 'woocommerce_price_thousand_sep' ) ), ENT_QUOTES );
$price = apply_filters( 'raw_woocommerce_price', floatval( $price ) );
$price = number_format( $price, $num_decimals, $decimal_sep, $thousands_sep );
$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 )
$price = woocommerce_trim_zeros( $price );

View File

@ -217,6 +217,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Tweak - Replaced all instances of → and ← in frontent using wc icon font plus .wc-forward and .wc-backward utility classes.
* Tweak - Add review form no longer opens in lightbox.
* Tweak - Move average rating outside of hidden tab for google #3867.
* Tweak - Add formatted_woocommerce_price filter.
* Fix - Changed MyException to Exception in Checkout class as MyException class does not exist in WooCommerce
* Fix - Default cart widget styling on non-wc pages.
* Fix - Rounding for mijireh tax ex. price.