Translate “Have a Coupon?” Message @ WooCommerce Checkout

PHOTO EMBED

Wed May 18 2022 03:39:16 GMT+0000 (Coordinated Universal Time)

Saved by @shadowtek

/**
 * @snippet       Edit "Have a Coupon" message @ WooCommerce Checkout
 * @author        Shadowtek Web Solutions
 * @compatible    WooCommerce 5
 */
 
add_filter( 'woocommerce_checkout_coupon_message', 'stek_have_coupon_message');
 
function stek_have_coupon_message() {
   return '<i class="fa fa-ticket" aria-hidden="true"></i> Have a coupon? <a href="#" class="showcoupon">Click here to enter your discount code</a>';
}
content_copyCOPY