Remove “on sale” badge on WooCommerce

[cc lang=”php”]function wpsnip_remove_sales_flash() {
return false;
}
add_filter( ‘woocommerce_sale_flash’, ‘wpsnip_remove_sales_flash’ );
[/cc]