Horje
wc php coupon applied message still after coupon delete Code Example
wc php coupon applied message still after coupon delete
add_filter( 'woocommerce_coupon_message', 'filter_woocommerce_coupon_message', 10, 3 );
function filter_woocommerce_coupon_message( $msg, $msg_code, $coupon ) {
    // $applied_coupons = WC()->cart->get_applied_coupons(); // Get applied coupons

    if( $msg === __( 'Coupon code applied successfully.', 'woocommerce' ) ) {
        $msg = sprintf( 
            __( "The %s promotion code has been applied and redeemed successfully.", "woocommerce" ), 
            '<strong>' . $coupon->get_code() . '</strong>' 
        );
    }

    return $msg;
}




Php

Related
auto complete order paid1 Code Example auto complete order paid1 Code Example
bootswatch import theme into laravell vuejs Code Example bootswatch import theme into laravell vuejs Code Example
if post checked category wordpress Code Example if post checked category wordpress Code Example
laravel foreach localstorage Code Example laravel foreach localstorage Code Example
add attachment to the invoice laravel Code Example add attachment to the invoice laravel Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11