Skip to content

Instantly share code, notes, and snippets.

@noellesteegs
Last active August 23, 2019 12:52
Show Gist options
  • Save noellesteegs/4a962ccf9d2b60d500cce0f0cabec779 to your computer and use it in GitHub Desktop.
Save noellesteegs/4a962ccf9d2b60d500cce0f0cabec779 to your computer and use it in GitHub Desktop.
Change text of WooCommerce sale badge
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