Skip to content

Instantly share code, notes, and snippets.

@woogist
Created March 6, 2015 08:17
Show Gist options
  • Save woogist/0e97ad6ade3cb0b210a7 to your computer and use it in GitHub Desktop.
Save woogist/0e97ad6ade3cb0b210a7 to your computer and use it in GitHub Desktop.
add_filter( 'woocommerce_sale_flash', 'wc_custom_replace_sale_text' );
function wc_custom_replace_sale_text( $html ) {
return str_replace( __( 'Sale!', 'woocommerce' ), __( 'My sale text!', 'woocommerce' ), $html );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment