WordPress action hook

woocommerce_after_cart_contents

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

How to use woocommerce_after_cart_contents

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_contents', 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.

41 plugins that fire woocommerce_after_cart_contents

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_contents' ) templates/cart/cart.php:215
  2. Essential Addons for Elementor icon Essential Addons for Elementor1+ million installs do_action( 'woocommerce_after_cart_contents' ) includes/Template/Woocommerce/Cart/Woo_Cart_Helper.php:251
  3. Royal Addons for Elementor icon Royal Addons for Elementor600,000+ installs do_action( 'woocommerce_after_cart_contents' ) includes/woocommerce/templates/cart/cart.php:157
  4. ShopEngine icon ShopEngine90,000+ installs do_action( 'woocommerce_after_cart_contents' ) widgets/cart-table/screens/cart.php:218
  5. Solace Extra icon Solace Extra10,000+ installs do_action( 'woocommerce_after_cart_contents' ) elementor/widgets/widget/shop/cart.php:2656
  6. ShopBuilder icon ShopBuilder10,000+ installs do_action( 'woocommerce_after_cart_contents' ) templates/elementor/cart/cart-table.php:231
  7. CoDesigner icon CoDesigner4,000+ installs do_action( 'woocommerce_after_cart_contents' ) widgets/cart-items/cart-items.php:2148
  8. WowStore icon WowStore4,000+ installs do_action( 'woocommerce_after_cart_contents' ) blocks/woo/cart_table/Template.php:269
  9. ShopEngine Gutenberg WooCommerce Builder Blocks Addon icon ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs do_action( 'woocommerce_after_cart_contents' ) blocks/cart-table/cart.php:152
  10. StoreGrowth icon StoreGrowth2,000+ installs do_action( 'woocommerce_after_cart_contents' ) modules/fly-cart/templates/cart-contents.php:185
  11. WP Hotel Booking WooCommerce icon WP Hotel Booking WooCommerce1,000+ installs do_action( 'woocommerce_after_cart_contents' ) templates/woocommerce/cart/cart.php:236
  12. WC Booster icon WC Booster700+ installs do_action( 'woocommerce_after_cart_contents' ) woocommerce/cart/cart.php:135
  13. MarketKing icon MarketKing700+ installs do_action( 'woocommerce_after_cart_contents' ) public/templates/cart.php:52
  14. ShopPress icon ShopPress600+ installs do_action( 'woocommerce_after_cart_contents' ) public/templates/cart/cart-table.php:171
  15. StoreBuild icon StoreBuild400+ installs do_action( 'woocommerce_after_cart_contents' ) public/woocommerce/cart/cart.php:156
  16. Noah Shop Builder for WooCommerce icon Noah Shop Builder for WooCommerce400+ installs do_action( 'woocommerce_after_cart_contents' ) includes/Blocks/CartTable.php:117
  17. CRT Addons Builder and Widgets for Elementor icon CRT Addons Builder and Widgets for Elementor300+ installs do_action( 'woocommerce_after_cart_contents' ) includes/customizer/addons/templates/cart/cart.php:157
  18. Free Product Sample for WooCommerce icon Free Product Sample for WooCommerce200+ installs do_action( 'woocommerce_after_cart_contents' ) public/partials/woocommerce/cart/cart.php:160
  19. KiriminAja Official icon KiriminAja Official200+ installs do_action( 'woocommerce_after_cart_contents' ) templates/woocommerce/cart/cart.php:187
  20. Shopready icon Shopready100+ installs do_action( 'woocommerce_after_cart_contents' ) src/extension/templates/presets/cart/cart.php:198
  21. ShopMaker icon ShopMaker90+ installs do_action( 'woocommerce_after_cart_contents' ) templates/widgets/sm-parts/cart-table.php:233
  22. AMP WooCommerce icon AMP WooCommerce90+ installs do_action( 'woocommerce_after_cart_contents' ) templates/cart/cart.php:155
  23. Gift Vouchers for WooCommerce icon Gift Vouchers for WooCommerce80+ installs do_action( 'woocommerce_after_cart_contents' ) templates/cart/cart.php:174
  24. WebSync Checkout for Elementor icon WebSync Checkout for Elementor60+ installs do_action( 'woocommerce_after_cart_contents' ) templates/cart/custom-cart.php:168
  25. Awesome Checkout Templates icon Awesome Checkout Templates40+ installs do_action( 'woocommerce_after_cart_contents' ) public/front-checkout.php:694
  26. One Page Checkout for WooCommerce icon One Page Checkout for WooCommerce30+ installs do_action( 'woocommerce_after_cart_contents' ) public/templates/cart/cart.php:156
  27. Restaurant Menu / bulk order plugin for WooCommerce icon Restaurant Menu / bulk order plugin for WooCommerce20+ installs do_action( 'woocommerce_after_cart_contents' ) front/view/woocommerce/cart/cart-empty.php:165
  28. Elite Elementor Addons and Widgets icon Elite Elementor Addons and Widgets20+ installs do_action( 'woocommerce_after_cart_contents' ) includes/woocommerce/templates/cart/cart.php:157
  29. ACL icon ACL10+ installs do_action( 'woocommerce_after_cart_contents' ) includes/cart/class-wooacd-cart-frontend.php:192
  30. SBS icon SBS10+ installs do_action( 'woocommerce_after_cart_contents' ) templates/cart/cart.php:132
  31. Express Shop for WooCommerce Product Table icon Express Shop for WooCommerce Product Table10+ installs do_action( 'woocommerce_after_cart_contents' ) inc/cart/cart.php:148
  32. Categorized Cart Page For Woocommerce icon Categorized Cart Page For Woocommerce10+ installs do_action( 'woocommerce_after_cart_contents' ) templates/cart.php:171
  33. Manual Orders for Woocommerce icon Manual Orders for Woocommerce10+ installs do_action( 'woocommerce_after_cart_contents' ) templates/checkout/cart.php:148
  34. C4D Woo Cart Popup & Slide icon C4D Woo Cart Popup & Slide10+ installs do_action( 'woocommerce_after_cart_contents' ) templates/popup-cart.php:119
  35. Alter Inventory icon Alter Inventory10+ installs do_action( 'woocommerce_after_cart_contents' ) admin/partials/woocommerce-alter-inventory-custom-cart.php:125
  36. Bazario icon BazarioFewer than 10 installs do_action( 'woocommerce_after_cart_contents' ) elements/widgets/cart-products/cart.php:158
  37. Cresta Checkout for WooCommerce icon Cresta Checkout for WooCommerceFewer than 10 installs do_action( 'woocommerce_after_cart_contents' ) inc/blocks/blocks-cart.php:86
  38. PaymentIQ Checkout icon PaymentIQ CheckoutFewer than 10 installs do_action( 'woocommerce_after_cart_contents' ) templates/paymentiq-cart-page.php:156
  39. MCOD Minimalist Checkout for WooCommerce icon MCOD Minimalist Checkout for WooCommerceFewer than 10 installs do_action( 'woocommerce_after_cart_contents' ) templates/woocommerce/cart/cart.php:81
  40. Portus Cart Page icon Portus Cart PageFewer than 10 installs do_action( 'woocommerce_after_cart_contents' ) templates/cart.php:60
  41. Samply icon SamplyFewer than 10 installs do_action( 'woocommerce_after_cart_contents' ) includes/Frontend/views/woocommerce/cart/cart.php:160

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.