woocommerce_cart_totals_coupon_label filter-hook . WC 1.0
translators: %s: coupon code
Usage
add_filter( 'woocommerce_cart_totals_coupon_label', 'filter_function_name_3585', 10, 2 ); function filter_function_name_3585( $sprintf, $coupon ){ // filter... return $sprintf; }
- $sprintf
- -
- $coupon
- -
Where the hook is called
woocommerce_cart_totals_coupon_label
woocommerce/includes/wc-cart-functions.php 264
$label = apply_filters( 'woocommerce_cart_totals_coupon_label', sprintf( esc_html__( 'Coupon: %s', 'woocommerce' ), $coupon->get_code() ), $coupon );