AI Verified

Name

Remove Subtotal from checkout page and email notifications

Language

PHP

Rating

Voted: 0 by 0 user(s)

Codevault

TrendoDigital

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: Not Specified

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

13/11/2022

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Remove Subtotal from checkout page and email notifications

 
                    
1add_filter( 'woocommerce_get_order_item_totals', 'remove_subtotal_from_orders_total_lines', 100, 1 );
2function remove_subtotal_from_orders_total_lines( $totals ) {
3 unset($totals['cart_subtotal'] );
4 return $totals;
5}

0

Related Snippets

Please see some snippets below related to this snippet..

WooCommerce

Unverified

WooCommerce

AI Verified

1

WooCommerce Sort Products By Stock Status

Added: 1 year ago

Last Updated: 2 months ago

This quick guide shows you how you can sort products on the archive template by stock status. This means you’ll be able to show In Stock products first, improving the customer experience....

WooCommerce

AI Verified

0

WooCommerce Display Product Specific Content Under Add To Cart Button On Archive Loop

Added: 1 year ago

Last Updated: 1 year ago

Do you want to be able to display product specific information under the add to cart button on the product loop item which appears on the product archive page? Maybe you want to let customers know of...

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

WooCommerce

AI Verified

0

WooCommerce PDF Invoice - Remove all invoices

Added: 1 year ago

Last Updated: 1 year ago

Remove all generated invoices from the plugin WooCommerce PDF Invoice

General

AI Verified

0

Remove Query String - ver

Added: 1 year ago

Last Updated: 1 year ago

WooCommerce

AI Verified

0

Hide Fields if Virtual @ WooCommerce Checkout

Added: 1 year ago

Last Updated: 1 year ago