Created
January 17, 2020 04:25
-
-
Save younes-dro/7544e8d62a0ffcb3e00860cccbe27485 to your computer and use it in GitHub Desktop.
Change the default Sale badge woocommerce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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