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:
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.
-
WooCommerce7+ million installs
do_action( 'woocommerce_after_cart_contents' )templates/cart/cart.php:215 -
Essential Addons for Elementor1+ million installs
do_action( 'woocommerce_after_cart_contents' )includes/Template/Woocommerce/Cart/Woo_Cart_Helper.php:251 -
Royal Addons for Elementor600,000+ installs
do_action( 'woocommerce_after_cart_contents' )includes/woocommerce/templates/cart/cart.php:157 -
ShopEngine90,000+ installs
do_action( 'woocommerce_after_cart_contents' )widgets/cart-table/screens/cart.php:218 -
Solace Extra10,000+ installs
do_action( 'woocommerce_after_cart_contents' )elementor/widgets/widget/shop/cart.php:2656 -
ShopBuilder10,000+ installs
do_action( 'woocommerce_after_cart_contents' )templates/elementor/cart/cart-table.php:231 -
CoDesigner4,000+ installs
do_action( 'woocommerce_after_cart_contents' )widgets/cart-items/cart-items.php:2148 -
WowStore4,000+ installs
do_action( 'woocommerce_after_cart_contents' )blocks/woo/cart_table/Template.php:269 -
ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs
do_action( 'woocommerce_after_cart_contents' )blocks/cart-table/cart.php:152 -
StoreGrowth2,000+ installs
do_action( 'woocommerce_after_cart_contents' )modules/fly-cart/templates/cart-contents.php:185 -
WP Hotel Booking WooCommerce1,000+ installs
do_action( 'woocommerce_after_cart_contents' )templates/woocommerce/cart/cart.php:236 -
WC Booster700+ installs
do_action( 'woocommerce_after_cart_contents' )woocommerce/cart/cart.php:135 -
MarketKing700+ installs
do_action( 'woocommerce_after_cart_contents' )public/templates/cart.php:52 -
ShopPress600+ installs
do_action( 'woocommerce_after_cart_contents' )public/templates/cart/cart-table.php:171 -
StoreBuild400+ installs
do_action( 'woocommerce_after_cart_contents' )public/woocommerce/cart/cart.php:156 -
Noah Shop Builder for WooCommerce400+ installs
do_action( 'woocommerce_after_cart_contents' )includes/Blocks/CartTable.php:117 -
CRT Addons Builder and Widgets for Elementor300+ installs
do_action( 'woocommerce_after_cart_contents' )includes/customizer/addons/templates/cart/cart.php:157 -
Free Product Sample for WooCommerce200+ installs
do_action( 'woocommerce_after_cart_contents' )public/partials/woocommerce/cart/cart.php:160 -
KiriminAja Official200+ installs
do_action( 'woocommerce_after_cart_contents' )templates/woocommerce/cart/cart.php:187 -
Shopready100+ installs
do_action( 'woocommerce_after_cart_contents' )src/extension/templates/presets/cart/cart.php:198 -
ShopMaker90+ installs
do_action( 'woocommerce_after_cart_contents' )templates/widgets/sm-parts/cart-table.php:233 -
AMP WooCommerce90+ installs
do_action( 'woocommerce_after_cart_contents' )templates/cart/cart.php:155 -
Gift Vouchers for WooCommerce80+ installs
do_action( 'woocommerce_after_cart_contents' )templates/cart/cart.php:174 -
WebSync Checkout for Elementor60+ installs
do_action( 'woocommerce_after_cart_contents' )templates/cart/custom-cart.php:168 -
Awesome Checkout Templates40+ installs
do_action( 'woocommerce_after_cart_contents' )public/front-checkout.php:694 -
One Page Checkout for WooCommerce30+ installs
do_action( 'woocommerce_after_cart_contents' )public/templates/cart/cart.php:156 -
Restaurant Menu / bulk order plugin for WooCommerce20+ installs
do_action( 'woocommerce_after_cart_contents' )front/view/woocommerce/cart/cart-empty.php:165 -
Elite Elementor Addons and Widgets20+ installs
do_action( 'woocommerce_after_cart_contents' )includes/woocommerce/templates/cart/cart.php:157 -
ACL10+ installs
do_action( 'woocommerce_after_cart_contents' )includes/cart/class-wooacd-cart-frontend.php:192 -
SBS10+ installs
do_action( 'woocommerce_after_cart_contents' )templates/cart/cart.php:132 -
Express Shop for WooCommerce Product Table10+ installs
do_action( 'woocommerce_after_cart_contents' )inc/cart/cart.php:148 -
Categorized Cart Page For Woocommerce10+ installs
do_action( 'woocommerce_after_cart_contents' )templates/cart.php:171 -
Manual Orders for Woocommerce10+ installs
do_action( 'woocommerce_after_cart_contents' )templates/checkout/cart.php:148 -
C4D Woo Cart Popup & Slide10+ installs
do_action( 'woocommerce_after_cart_contents' )templates/popup-cart.php:119 -
Alter Inventory10+ installs
do_action( 'woocommerce_after_cart_contents' )admin/partials/woocommerce-alter-inventory-custom-cart.php:125 -
BazarioFewer than 10 installs
do_action( 'woocommerce_after_cart_contents' )elements/widgets/cart-products/cart.php:158 -
Cresta Checkout for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_cart_contents' )inc/blocks/blocks-cart.php:86 -
PaymentIQ CheckoutFewer than 10 installs
do_action( 'woocommerce_after_cart_contents' )templates/paymentiq-cart-page.php:156 -
MCOD Minimalist Checkout for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_cart_contents' )templates/woocommerce/cart/cart.php:81 -
Portus Cart PageFewer than 10 installs
do_action( 'woocommerce_after_cart_contents' )templates/cart.php:60 -
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.