WordPress action hook

woocommerce_after_cart_totals

Defined by WooCommerce and fired by 17 plugins in total, running on 8.1M+ sites between them.

How to use woocommerce_after_cart_totals

It's an action: your callback runs at that point. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'woocommerce_after_cart_totals', function() {
	// Your code runs here.
}, 10, 1 );

Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

17 plugins that fire woocommerce_after_cart_totals

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs do_action( 'woocommerce_after_cart_totals' ) templates/cart/cart-totals.php:110
  2. Essential Addons for Elementor icon Essential Addons for Elementor1+ million installs do_action( 'woocommerce_after_cart_totals' ) includes/Template/Woocommerce/Cart/Woo_Cart_Helper.php:388
  3. ShopEngine icon ShopEngine90,000+ installs do_action( 'woocommerce_after_cart_totals' ) widgets/cart-totals/screens/default.php:141
  4. CoDesigner icon CoDesigner4,000+ installs do_action( 'woocommerce_after_cart_totals' ) widgets/cart-overview/assets/templates/cart-totals.php:173
  5. WowStore icon WowStore4,000+ installs do_action( 'woocommerce_after_cart_totals' ) blocks/woo/Cart_Total.php:52
  6. ShopEngine Gutenberg WooCommerce Builder Blocks Addon icon ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs do_action( 'woocommerce_after_cart_totals' ) blocks/cart-totals/screen.php:135
  7. Hide Price Until Login icon Hide Price Until Login1,000+ installs do_action( 'woocommerce_after_cart_totals' ) includes/cart-total.php:20
  8. WC Booster icon WC Booster700+ installs do_action( 'woocommerce_after_cart_totals' ) woocommerce/cart/cart-totals.php:104
  9. ShopPress icon ShopPress600+ installs do_action( 'woocommerce_after_cart_totals' ) public/templates/cart/cart-totals.php:103
  10. KiriminAja Official icon KiriminAja Official200+ installs do_action( 'woocommerce_after_cart_totals' ) templates/woocommerce/cart/cart-totals.php:145
  11. Shopready icon Shopready100+ installs do_action( 'woocommerce_after_cart_totals' ) src/extension/templates/tpl/cart/cart-totals.php:110
  12. WebSync Checkout for Elementor icon WebSync Checkout for Elementor50+ installs do_action( 'woocommerce_after_cart_totals' ) templates/cart/custom-cart-totals.php:121
  13. Max Elements for Elementor icon Max Elements for Elementor10+ installs do_action( 'woocommerce_after_cart_totals' ) elementor/helpers/woo_cart.php:352
  14. Global Seller Services for WooCommerce icon Global Seller Services for WooCommerce10+ installs do_action( 'woocommerce_after_cart_totals' ) templates/TaxCalculation/cart-totals.php:162
  15. Cresta Checkout for WooCommerce icon Cresta Checkout for WooCommerceFewer than 10 installs do_action( 'woocommerce_after_cart_totals' ) inc/blocks/blocks-cart.php:324
  16. IPS Cart&Checkout for WooCommerce icon IPS Cart&Checkout for WooCommerceFewer than 10 installs do_action( 'woocommerce_after_cart_totals' ) includes/classes/Front/Sidecart/SidecartSlotRenderer.php:18
  17. Bazario icon BazarioFewer than 10 installs do_action( 'woocommerce_after_cart_totals' ) elements/widgets/cart-totals/cart-totals.php:1196

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.