WordPress action hook

woocommerce_after_cart

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

How to use woocommerce_after_cart

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

45 plugins that fire woocommerce_after_cart

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' ) templates/cart/cart.php:235
  2. Essential Addons for Elementor icon Essential Addons for Elementor1+ million installs do_action( 'woocommerce_after_cart' ) includes/Template/Woocommerce/Cart/Woo_Cart_Shortcode.php:84
  3. Royal Addons for Elementor icon Royal Addons for Elementor600,000+ installs do_action( 'woocommerce_after_cart' ) includes/woocommerce/templates/cart/cart.php:177
  4. ShopEngine icon ShopEngine90,000+ installs do_action( 'woocommerce_after_cart' ) widgets/cart-table/screens/cart.php:256
  5. Solace Extra icon Solace Extra10,000+ installs do_action( 'woocommerce_after_cart' ) elementor/widgets/widget/shop/cart.php:2686
  6. CoDesigner icon CoDesigner4,000+ installs do_action( 'woocommerce_after_cart' ) widgets/cart-overview/assets/templates/cart-totals.php:177
  7. WowStore icon WowStore4,000+ installs do_action( 'woocommerce_after_cart' ) blocks/woo/cart_table/Template.php:286
  8. Ultimate Store Kit icon Ultimate Store Kit3,000+ installs do_action( 'woocommerce_after_cart' ) includes/builder/templates/woocommerce/cart.php:26
  9. ShopEngine Gutenberg WooCommerce Builder Blocks Addon icon ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs do_action( 'woocommerce_after_cart' ) blocks/cart-table/cart.php:190
  10. StoreGrowth icon StoreGrowth2,000+ installs do_action( 'woocommerce_after_cart' ) modules/fly-cart/templates/cart-contents.php:207
  11. WP Hotel Booking WooCommerce icon WP Hotel Booking WooCommerce1,000+ installs do_action( 'woocommerce_after_cart' ) templates/woocommerce/cart/cart.php:254
  12. Better Usability for WooCommerce icon Better Usability for WooCommerce700+ installs do_action( 'woocommerce_after_cart' ) includes/class-wbu-cart.php:77
  13. WC Booster icon WC Booster700+ installs do_action( 'woocommerce_after_cart' ) woocommerce/cart/cart.php:163
  14. MarketKing icon MarketKing700+ installs do_action( 'woocommerce_after_cart' ) public/templates/cart.php:71
  15. ShopPress icon ShopPress600+ installs do_action( 'woocommerce_after_cart' ) public/templates/cart/cart.php:18
  16. StoreBuild icon StoreBuild400+ installs do_action( 'woocommerce_after_cart' ) public/templates/cart-canvas.php:58
  17. Noah Shop Builder for WooCommerce icon Noah Shop Builder for WooCommerce400+ installs do_action( 'woocommerce_after_cart' ) includes/Templates/Types/Cart.php:112
  18. CRT Addons Builder and Widgets for Elementor icon CRT Addons Builder and Widgets for Elementor300+ installs do_action( 'woocommerce_after_cart' ) includes/customizer/addons/templates/cart/cart.php:177
  19. Free Product Sample for WooCommerce icon Free Product Sample for WooCommerce200+ installs do_action( 'woocommerce_after_cart' ) public/partials/woocommerce/cart/cart.php:180
  20. KiriminAja Official icon KiriminAja Official200+ installs do_action( 'woocommerce_after_cart' ) templates/woocommerce/cart/cart.php:215
  21. Shopready icon Shopready100+ installs do_action( 'woocommerce_after_cart' ) src/extension/templates/presets/cart/cart.php:666
  22. ShopMaker icon ShopMaker90+ installs do_action( 'woocommerce_after_cart' ) templates/widgets/sm-parts/cart-total.php:26
  23. AMP WooCommerce icon AMP WooCommerce90+ installs do_action( 'woocommerce_after_cart' ) templates/cart/cart.php:193
  24. Gift Vouchers for WooCommerce icon Gift Vouchers for WooCommerce80+ installs do_action( 'woocommerce_after_cart' ) templates/cart/cart.php:194
  25. WebSync Checkout for Elementor icon WebSync Checkout for Elementor50+ installs do_action( 'woocommerce_after_cart' ) templates/cart/custom-cart.php:194
  26. One Page Checkout for WooCommerce icon One Page Checkout for WooCommerce30+ installs do_action( 'woocommerce_after_cart' ) public/templates/cart/cart.php:176
  27. Restaurant Menu / bulk order plugin for WooCommerce icon Restaurant Menu / bulk order plugin for WooCommerce20+ installs do_action( 'woocommerce_after_cart' ) front/view/woocommerce/cart/cart-empty.php:183
  28. Elite Elementor Addons and Widgets icon Elite Elementor Addons and Widgets20+ installs do_action( 'woocommerce_after_cart' ) includes/woocommerce/templates/cart/cart.php:177
  29. SBS icon SBS10+ installs do_action( 'woocommerce_after_cart' ) templates/cart/cart.php:150
  30. Max Elements for Elementor icon Max Elements for Elementor10+ installs do_action( 'woocommerce_after_cart' ) elementor/helpers/woo_cart.php:788
  31. Express Shop for WooCommerce Product Table icon Express Shop for WooCommerce Product Table10+ installs do_action( 'woocommerce_after_cart' ) inc/cart/cart.php:166
  32. Categorized Cart Page For Woocommerce icon Categorized Cart Page For Woocommerce10+ installs do_action( 'woocommerce_after_cart' ) templates/cart.php:191
  33. ACL icon ACL10+ installs do_action( 'woocommerce_after_cart' ) includes/cart/class-wooacd-cart-frontend.php:209
  34. Manual Orders for Woocommerce icon Manual Orders for Woocommerce10+ installs do_action( 'woocommerce_after_cart' ) templates/checkout/cart.php:154
  35. C4D Woo Cart Popup & Slide icon C4D Woo Cart Popup & Slide10+ installs do_action( 'woocommerce_after_cart' ) templates/popup-cart.php:131
  36. Formdev icon Formdev10+ installs do_action( 'woocommerce_after_cart' ) templates/cart.php:294
  37. Bazario icon BazarioFewer than 10 installs do_action( 'woocommerce_after_cart' ) elements/widgets/cart-products/cart.php:183
  38. ShopGlut icon ShopGlutFewer than 10 installs do_action( 'woocommerce_after_cart' ) modules/cart-page/frontend/cart.php:16
  39. Cresta Checkout for WooCommerce icon Cresta Checkout for WooCommerceFewer than 10 installs do_action( 'woocommerce_after_cart' ) templates/wc/cart/cart.php:36
  40. PaymentIQ Checkout icon PaymentIQ CheckoutFewer than 10 installs do_action( 'woocommerce_after_cart' ) templates/paymentiq-cart-page.php:235
  41. MCOD Minimalist Checkout for WooCommerce icon MCOD Minimalist Checkout for WooCommerceFewer than 10 installs do_action( 'woocommerce_after_cart' ) templates/woocommerce/cart/cart.php:85
  42. Portus Cart Page icon Portus Cart PageFewer than 10 installs do_action( 'woocommerce_after_cart' ) templates/cart.php:83
  43. Ajax instant buy checkout for WooCommerce icon Ajax instant buy checkout for WooCommerceFewer than 10 installs do_action( 'woocommerce_after_cart' ) template/cart.php:57
  44. Samply icon SamplyFewer than 10 installs do_action( 'woocommerce_after_cart' ) includes/Frontend/views/woocommerce/cart/cart.php:180
  45. Points and Rewards with WooCommerce Blocks icon Points and Rewards with WooCommerce BlocksFewer than 10 installs do_action( 'woocommerce_after_cart' ) includes/class-points-and-rewards-with-wcb.php:87

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.