Skip to content

Instantly share code, notes, and snippets.

@remcotolsma
Created January 14, 2014 15:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remcotolsma/8420351 to your computer and use it in GitHub Desktop.
Save remcotolsma/8420351 to your computer and use it in GitHub Desktop.
Override WooCommerce "Sale!" text.
<?php
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