diff --git a/includes/wc-formatting-functions.php b/includes/wc-formatting-functions.php
index 91bf3e3a728..313c1b8717e 100644
--- a/includes/wc-formatting-functions.php
+++ b/includes/wc-formatting-functions.php
@@ -328,13 +328,14 @@ function wc_price( $price, $args = array() ) {
$price = wc_trim_zeros( $price );
}
- $return = '' . sprintf( get_woocommerce_price_format(), $currency_symbol, $price ) . '';
+ $formatted_price = sprintf( get_woocommerce_price_format(), $currency_symbol, $price );
+ $return = '' . $formatted_price . '';
if ( $ex_tax_label && get_option( 'woocommerce_calc_taxes' ) == 'yes' ) {
$return .= ' ' . WC()->countries->ex_tax_or_vat() . '';
}
- return $return;
+ return apply_filters( 'wc_price', $return, $price, $args );
}
/**