Last active
August 23, 2019 12:52
-
-
Save noellesteegs/4a962ccf9d2b60d500cce0f0cabec779 to your computer and use it in GitHub Desktop.
Change text of WooCommerce sale badge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_sale_flash', 'edit_sale_badge_text' ); | |
function edit_sale_badge_text() { | |
return '<span class="onsale">Buy me!</span>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment