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.8.7.0

apply_filters('woocommerce_cart_totals_coupon_label') is found 1 times:

  • /includes/wc-cart-functions.php line 267
    		$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;
    	}