Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sarancartrabbit/d848fc8d166fa892be6fc243c3b47927 to your computer and use it in GitHub Desktop.
Save sarancartrabbit/d848fc8d166fa892be6fc243c3b47927 to your computer and use it in GitHub Desktop.
Woo Discount Rules: For changing the sale tag text
add_filter('woocommerce_sale_flash', function ($html, $post, $_product) {
return '<span class="sale" style="background-color:#ddd;">Aktion!</span>';
},10,3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment