I was working one of my client project in woocommerce and place “0” price and now it displaying on front category or shop page as a “Free” text.
So client want to change text “Free” to another and after Searching on google got the very well code which I want to share.
For this Just paste this code in functions.php in your theme file that’s it.
add_filter( 'woocommerce_variable_free_price_html', 'hide_free_price' );
add_filter( 'woocommerce_free_price_html', 'hide_free_price' );
add_filter( 'woocommerce_variation_free_price_html', 'hide_free_price' );
return 'Price Not Announced';
In this code value will return “Price Not Found”.