If products are on sale, WooCommerce has built in functionally that adds a badge over the product preview. It’s helpful on a store with lots of products and a large catalog, however on a smaller site it can detract from your products and design. So sometimes you’ll want to remove sale text completely.
Here’s a snippet to remove the sale text in WooCommerce.
function hide_sales_flash() {
return false;
}
add_filter('woocommerce_sale_flash', 'hide_sales_flash');
Join the newsletter to get the best articles, tutorials and exclusive freebies every two weeks.