Well, When we enter the 0 price in woo commerce it display default “Free” text on products page. But We need to change text “Free” to other or It should return to blank.
So lets Follow this instruction:
Just paste this code in functions.php in your theme file.
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' );
function hide_free_price($price){
return 'Price Not Announced';
}
In return you set either blank or as per your need!
Enjoy the Code!
Thanks that worked perfectly.
LikeLike
Thank you! Exactly what I needed. ^o^
LikeLike
wow! it works! thanks mate
LikeLike