Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

woocommerce change sale text

<?php
add_filter('woocommerce_sale_flash', 'woocommerce_custom_sale_text', 10, 3);
function woocommerce_custom_sale_text($text, $post, $_product)
{
    return '<span class="onsale">PUT YOUR TEXT</span>';
}
Source by www.cloudways.com #
 
PREVIOUS NEXT
Tagged: #woocommerce #change #sale #text
ADD COMMENT
Topic
Name
5+4 =