In some contexts, the default “Sale!” badge shown on WooCommerce Product Arhive pages, single product pages, and on cross-sells and upsells may need to be changed. This quick guide shows you how to change this text to something completely custom to meet your business requirements. In this particular example, we have changed the text to “Price Cut!”.
/**
* Snippet Name: Change the WooCommerce sale badge.
* Snippet Author: ecommercehints.com
*/
add_filter( 'woocommerce_sale_flash', 'ecommercehints_rename_sale_badge', 10, 2 );
function ecommercehints_rename_sale_badge( $badge_html, $post ) {
return 'Price Cut!';
}