WC price without formatting

To show the wc_price() without formatted HTML use the following function:

 * Returns the wc_price without html tags
function th_wc_price_unformatted( $price = 0 ) {
   return html_entity_decode( strip_tags( wc_price( $price ) ) );

Robbert Vermeulen

Need help from a WordPress expert?

I would love to hear about your project and how I can help you achieve your goals