woocommerce_cart_totals_coupon_label

woocommerce_cart_totals_coupon_label

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_cart_totals_coupon_label') is found 1 times:

  • /includes/wc-cart-functions.php line 291
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
        $coupon = new WC_Coupon( $coupon );
    }
     
    /* translators: %s: coupon code */
    $label = apply_filters( 'woocommerce_cart_totals_coupon_label', sprintf( esc_html__( 'Coupon: %s', 'woocommerce' ), $coupon->get_code() ), $coupon );
     
    if ( $echo ) {
        echo $label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    } else {
        return $label;
    }