Skip to content

Instantly share code, notes, and snippets.

@zakirsajib
Created March 1, 2018 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zakirsajib/8dde0d34c7ab14ae422615ed5f249e76 to your computer and use it in GitHub Desktop.
Save zakirsajib/8dde0d34c7ab14ae422615ed5f249e76 to your computer and use it in GitHub Desktop.
Rename the "Have a Coupon?" message on the checkout page
function woocommerce_rename_coupon_message_on_checkout() {
return 'Har du en kupon?' . ' <a href="#" class="showcoupon">' . __( 'Klik her for at indtaste din kode', 'woocommerce' ) . '</a>';
}
add_filter( 'woocommerce_checkout_coupon_message', 'woocommerce_rename_coupon_message_on_checkout' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment