Created
August 20, 2023 22:08
-
-
Save Acephalia/3af737e1700dc9bb02f2643f645ce524 to your computer and use it in GitHub Desktop.
Change WC Coupon Placeholder
This file contains 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
function my_coupon_strings( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'Coupon code' : | |
$translated_text = __( 'My New Coupon Code Text', 'woocommerce' ); // Change text here | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'my_coupon_strings', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment