Answers for "change coupon remove link"

0

change coupon remove link

function filter_woocommerce_cart_totals_coupon_html( $coupon_html, $coupon, $discount_amount_html ) {
    $coupon_html = $discount_amount_html . '<a href="https://www.stackoverflow.com">My url</a>';

    return $coupon_html;
}
add_filter( 'woocommerce_cart_totals_coupon_html', 'filter_woocommerce_cart_totals_coupon_html', 10, 3 );
Posted by: Guest on March-02-2021

Browse Popular Code Answers by Language