Created
June 30, 2019 12:37
-
-
Save deeman/7f407edf8e5c9478bf0991d8cd9b65e2 to your computer and use it in GitHub Desktop.
WooCommerce - Change Salesbadge Text
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 Custom text for salesbadge// | |
| 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