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:
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.
-
WooCommerce7+ million installs
do_action( 'woocommerce_after_cart' )templates/cart/cart.php:235 -
Essential Addons for Elementor1+ million installs
do_action( 'woocommerce_after_cart' )includes/Template/Woocommerce/Cart/Woo_Cart_Shortcode.php:84 -
Royal Addons for Elementor600,000+ installs
do_action( 'woocommerce_after_cart' )includes/woocommerce/templates/cart/cart.php:177 -
ShopEngine90,000+ installs
do_action( 'woocommerce_after_cart' )widgets/cart-table/screens/cart.php:256 -
Solace Extra10,000+ installs
do_action( 'woocommerce_after_cart' )elementor/widgets/widget/shop/cart.php:2686 -
CoDesigner4,000+ installs
do_action( 'woocommerce_after_cart' )widgets/cart-overview/assets/templates/cart-totals.php:177 -
WowStore4,000+ installs
do_action( 'woocommerce_after_cart' )blocks/woo/cart_table/Template.php:286 -
Ultimate Store Kit3,000+ installs
do_action( 'woocommerce_after_cart' )includes/builder/templates/woocommerce/cart.php:26 -
ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs
do_action( 'woocommerce_after_cart' )blocks/cart-table/cart.php:190 -
StoreGrowth2,000+ installs
do_action( 'woocommerce_after_cart' )modules/fly-cart/templates/cart-contents.php:207 -
WP Hotel Booking WooCommerce1,000+ installs
do_action( 'woocommerce_after_cart' )templates/woocommerce/cart/cart.php:254 -
Better Usability for WooCommerce700+ installs
do_action( 'woocommerce_after_cart' )includes/class-wbu-cart.php:77 -
WC Booster700+ installs
do_action( 'woocommerce_after_cart' )woocommerce/cart/cart.php:163 -
MarketKing700+ installs
do_action( 'woocommerce_after_cart' )public/templates/cart.php:71 -
ShopPress600+ installs
do_action( 'woocommerce_after_cart' )public/templates/cart/cart.php:18 -
StoreBuild400+ installs
do_action( 'woocommerce_after_cart' )public/templates/cart-canvas.php:58 -
Noah Shop Builder for WooCommerce400+ installs
do_action( 'woocommerce_after_cart' )includes/Templates/Types/Cart.php:112 -
CRT Addons Builder and Widgets for Elementor300+ installs
do_action( 'woocommerce_after_cart' )includes/customizer/addons/templates/cart/cart.php:177 -
Free Product Sample for WooCommerce200+ installs
do_action( 'woocommerce_after_cart' )public/partials/woocommerce/cart/cart.php:180 -
KiriminAja Official200+ installs
do_action( 'woocommerce_after_cart' )templates/woocommerce/cart/cart.php:215 -
Shopready100+ installs
do_action( 'woocommerce_after_cart' )src/extension/templates/presets/cart/cart.php:666 -
ShopMaker90+ installs
do_action( 'woocommerce_after_cart' )templates/widgets/sm-parts/cart-total.php:26 -
AMP WooCommerce90+ installs
do_action( 'woocommerce_after_cart' )templates/cart/cart.php:193 -
Gift Vouchers for WooCommerce80+ installs
do_action( 'woocommerce_after_cart' )templates/cart/cart.php:194 -
WebSync Checkout for Elementor50+ installs
do_action( 'woocommerce_after_cart' )templates/cart/custom-cart.php:194 -
One Page Checkout for WooCommerce30+ installs
do_action( 'woocommerce_after_cart' )public/templates/cart/cart.php:176 -
Restaurant Menu / bulk order plugin for WooCommerce20+ installs
do_action( 'woocommerce_after_cart' )front/view/woocommerce/cart/cart-empty.php:183 -
Elite Elementor Addons and Widgets20+ installs
do_action( 'woocommerce_after_cart' )includes/woocommerce/templates/cart/cart.php:177 -
SBS10+ installs
do_action( 'woocommerce_after_cart' )templates/cart/cart.php:150 -
Max Elements for Elementor10+ installs
do_action( 'woocommerce_after_cart' )elementor/helpers/woo_cart.php:788 -
Express Shop for WooCommerce Product Table10+ installs
do_action( 'woocommerce_after_cart' )inc/cart/cart.php:166 -
Categorized Cart Page For Woocommerce10+ installs
do_action( 'woocommerce_after_cart' )templates/cart.php:191 -
ACL10+ installs
do_action( 'woocommerce_after_cart' )includes/cart/class-wooacd-cart-frontend.php:209 -
Manual Orders for Woocommerce10+ installs
do_action( 'woocommerce_after_cart' )templates/checkout/cart.php:154 -
C4D Woo Cart Popup & Slide10+ installs
do_action( 'woocommerce_after_cart' )templates/popup-cart.php:131 -
Formdev10+ installs
do_action( 'woocommerce_after_cart' )templates/cart.php:294 -
BazarioFewer than 10 installs
do_action( 'woocommerce_after_cart' )elements/widgets/cart-products/cart.php:183 -
ShopGlutFewer than 10 installs
do_action( 'woocommerce_after_cart' )modules/cart-page/frontend/cart.php:16 -
Cresta Checkout for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_cart' )templates/wc/cart/cart.php:36 -
PaymentIQ CheckoutFewer than 10 installs
do_action( 'woocommerce_after_cart' )templates/paymentiq-cart-page.php:235 -
MCOD Minimalist Checkout for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_cart' )templates/woocommerce/cart/cart.php:85 -
Portus Cart PageFewer than 10 installs
do_action( 'woocommerce_after_cart' )templates/cart.php:83 -
Ajax instant buy checkout for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_cart' )template/cart.php:57 -
SamplyFewer than 10 installs
do_action( 'woocommerce_after_cart' )includes/Frontend/views/woocommerce/cart/cart.php:180 -
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.