mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
https://stackoverflow.com/questions/65447443/change-remove-link-text-for-woocommerce-coupon-on-checkout-page/65447601
7 lines
346 B
Text
7 lines
346 B
Text
function filter_woocommerce_cart_totals_coupon_html( $coupon_html, $coupon, $discount_amount_html ) {
|
|
// Change text
|
|
$coupon_html = str_replace( '[Remove]', '[Remove & Re-Calculate]', $coupon_html );
|
|
|
|
return $coupon_html;
|
|
}
|
|
add_filter( 'woocommerce_cart_totals_coupon_html', 'filter_woocommerce_cart_totals_coupon_html', 10, 3 );
|