woocommerce change sale text

Solutions on MaxInterview for woocommerce change sale text by the best coders in the world

showing results for - "woocommerce change sale text"
Elisa
13 Nov 2018
1<?php
2add_filter('woocommerce_sale_flash', 'woocommerce_custom_sale_text', 10, 3);
3function woocommerce_custom_sale_text($text, $post, $_product)
4{
5    return '<span class="onsale">PUT YOUR TEXT</span>';
6}
7