Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Override WooCommerce "Sale!" text.
function prefix_woocommerce_sale_flash( $text ) {
$text = '<span class="onsale">'. __( 'Action!', 'text_domain' ). '</span>';
return $text;
add_filter( 'woocommerce_sale_flash', 'prefix_woocommerce_sale_flash' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.