Skip to content

Instantly share code, notes, and snippets.

@clifgriffin
Created September 5, 2020 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save clifgriffin/13db6c4e077c31b6d203551d840b46e5 to your computer and use it in GitHub Desktop.
Save clifgriffin/13db6c4e077c31b6d203551d840b46e5 to your computer and use it in GitHub Desktop.
<?php
// Do NOT include opening PHP tag above (<?php)
// Add to:
// - functions.php in child theme
// - Code Snippets
// - Settings > CheckoutWC > Premium Features > PHP Snippets (for Growth and Developer plans)
add_filter( 'cfw_promo_code_mobile_heading', function() {
return __( 'Coupon code', 'checkout-wc' );
} );
add_filter( 'cfw_promo_code_label', function() {
return __( 'Coupon Code', 'checkout-wc' );
} );
add_filter( 'cfw_promo_code_placeholder', function() {
return __( 'Enter Coupon Code', 'checkout-wc' );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment