Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Created September 21, 2019 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save claudiosanches/e0cfce98ef39053af022e29044eb9727 to your computer and use it in GitHub Desktop.
Save claudiosanches/e0cfce98ef39053af022e29044eb9727 to your computer and use it in GitHub Desktop.
WooCommerce - Change "Sale!" text
add_filter( 'woocommerce_sale_flash', function( $string ) {
echo '<span class="onsale">Promoção!</span>'
}, 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment