WordPress action hook
woocommerce_after_main_content
Defined by WooCommerce and fired by 58 plugins in total, running on 7.1M+ sites between them.
“Hook: woocommerce_after_main_content”
How to use woocommerce_after_main_content
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_main_content', 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.
58 plugins that fire woocommerce_after_main_content
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
do_action( 'woocommerce_after_main_content' )src/Blocks/BlockTypes/ClassicTemplate.php:283 -
User Profile Builder40,000+ installs
do_action( 'woocommerce_after_main_content' )features/content-restriction/templates/archive-product.php:55 -
Dokan: AI Powered WooCommerce Multivendor Marketplace Solution30,000+ installs
do_action( 'woocommerce_after_main_content' )templates/store.php:91 -
Genesis Connect for WooCommerce10,000+ installs
do_action( 'woocommerce_after_main_content' )lib/template-loader.php:309 -
Paid Membership Subscriptions10,000+ installs
do_action( 'woocommerce_after_main_content' )extend/woocommerce/templates/archive-product.php:46 -
Passster10,000+ installs
do_action( 'woocommerce_after_main_content' )inc/templates/woo-category-protected.php:47 -
King Addons for Elementor10,000+ installs
do_action( 'woocommerce_after_main_content' )includes/extensions/Woo_Builder/templates/cart.php:32 -
eCommerce Product Catalog7,000+ installs
do_action( 'woocommerce_after_main_content' )templates/templates-woo.php:207 -
Ibtana5,000+ installs
do_action( 'woocommerce_after_main_content' )inc/class-public.php:98 -
Product Table for WooCommerce5,000+ installs
do_action( 'woocommerce_after_main_content' )templates/store.php:74 -
Return Refund and Exchange For WooCommerce4,000+ installs
do_action( 'woocommerce_after_main_content' )public/partials/wps-rma-refund-request-form.php:482 -
WC Vendors3,000+ installs
do_action( 'woocommerce_after_main_content' )templates/front/vendor-shop.php:95 -
Ultimate Store Kit3,000+ installs
do_action( 'woocommerce_after_main_content' )includes/builder/templates/woocommerce/login.php:63 -
The Pack Elementor addon2,000+ installs
do_action( 'woocommerce_after_main_content' )includes/widgets/woocommerce/woo-archive-product/view.php:35 -
WC Builder1,000+ installs
do_action( 'woocommerce_after_main_content' )woo-templates/archive-product.php:56 -
Product Layouts for WooCommerce1,000+ installs
do_action( 'woocommerce_after_main_content' )Includes/Woocommerce/custom-product-category.php:51 -
Product Catalog Simple1,000+ installs
do_action( 'woocommerce_after_main_content' )core/templates/templates-woo.php:207 -
Smart Search & Product Filter for WooCommerce900+ installs
do_action( 'woocommerce_after_main_content' )templates/smart-navigation.php:77 -
StylePress for Elementor600+ installs
do_action( 'woocommerce_after_main_content' )extensions/woocommerce/templates/archive-product.php:120 -
StoreBuild400+ installs
do_action( 'woocommerce_after_main_content' )public/woocommerce/archive-product.php:88 -
Noah Shop Builder for WooCommerce300+ installs
do_action( 'woocommerce_after_main_content' )templates/canvas-theme.php:37 -
Track Orders for WooCommerce200+ installs
do_action( 'woocommerce_after_main_content' )template/wps-guest-track-order-page.php:135 -
Search, Filters & Merchandising for WooCommerce200+ installs
do_action( 'woocommerce_after_main_content' )public/wcis_product_cat.php:76 -
Filter Plus100+ installs
do_action( 'woocommerce_after_main_content' )templates/woo-filter/category-layout.php:41 -
Shopready100+ installs
do_action( 'woocommerce_after_main_content' )src/extension/templates/tpl/archive-product.php:111 -
WPCafe Multivendor Restaurant Addon for Dokan100+ installs
do_action( 'woocommerce_after_main_content' )templates/store-front/menu-style/store-footer.php:13 -
AMP WooCommerce90+ installs
do_action( 'woocommerce_after_main_content' )templates/layouts/single.php:13 -
Product Page Customizer for WooCommerce60+ installs
do_action( 'woocommerce_after_main_content' )frontend/templates/builder-single-product-block-theme.php:48 -
CelerSearch30+ installs
do_action( 'woocommerce_after_main_content' )templates/views/shop-view.php:40 -
Educat Elementor LMS Addon20+ installs
do_action( 'woocommerce_after_main_content' )includes/widgets/woocommerce/woo-archive-product/view.php:29 -
Luma Product Fields10+ installs
do_action( 'woocommerce_after_main_content' )templates/taxonomy-product-archive.php:191 -
Flowbox10+ installs
do_action( 'woocommerce_after_main_content' )template/woocommerce/single-product.php:47 -
Product category and page relation10+ installs
do_action( 'woocommerce_after_main_content' )woocommerce/archive-product.php:227 -
Yay Wholesale B2B for WooCommerce10+ installs
do_action( 'woocommerce_after_main_content' )includes/Engine/Compatibles/Barn2WoocommerceProductTable/templates/product-table-shop.php:98 -
Lock My WooCommerce10+ installs
do_action( 'woocommerce_after_main_content' )template/woocommerce-lock.php:44 -
Proshots For WooCommerce10+ installs
do_action( 'woocommerce_after_main_content' )templates/archive-product.php:118 -
Formdev10+ installs
do_action( 'woocommerce_after_main_content' )templates/archive-product.php:47 -
BannerWoo10+ installs
do_action( 'woocommerce_after_main_content' )includes/banner-type.php:147 -
NoorPDP10+ installs
do_action( 'woocommerce_after_main_content' )templates/single-product-layout.php:59 -
WebToffee Universal Commerce Protocol Enabler for Woocommerce10+ installs
do_action( 'woocommerce_after_main_content' )includes/modules/identity-linking/class-webtoffee-ucp-enabler-for-woocommerce-identity-linking.php:2080 -
SpeedSearchFewer than 10 installs
do_action( 'woocommerce_after_main_content' )src/integrations/themes/flatsome/templates/woocommerce/archive-product.php:73 -
WEBD Woo Event BookingsFewer than 10 installs
do_action( 'woocommerce_after_main_content' )templates/archive-product.php:129 -
Novatum Payment Gateway for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_main_content' )includes/novatum-failure-page-template.php:160 -
Yay Bulk Order for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_main_content' )includes/Engines/Compatibles/YayWholesale/templates/product-table-shop.php:98 -
GrowthLab Bundle Builder for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_main_content' )templates/single-glbbwc_bundle.php:64 -
Arshida Toolkit for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_main_content' )src/Modules/QuickOrderBySku/templates/single-product.php:40 -
AWSA Quick Buy for WoocommerceFewer than 10 installs
do_action( 'woocommerce_after_main_content' )templates/single-product-template.php:36 -
Polanger Dating for WordPressFewer than 10 installs
do_action( 'woocommerce_after_main_content' )templates/integrations/woocommerce/archive-product.php:108 -
Multiconnect SalsifyFewer than 10 installs
do_action( 'woocommerce_after_main_content' )templates/single-product/salsify-woo-1-fse.php:88 -
Flx ModernizeFewer than 10 installs
do_action( 'woocommerce_after_main_content' )includes/Flatsome/FlatsomeParts.php:491 -
CardGrid for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_main_content' )templates/engine-wrapper.php:98 -
Product Bundles for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_main_content' )templates/landing.php:23 -
Pablo MeasureCartFewer than 10 installs
do_action( 'woocommerce_after_main_content' )templates/archive-product.php:29 -
OneTrace for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_main_content' )templates/search-results.php:16 -
SingleGrid PDP Builder for WooCommerceFewer than 10 installs
do_action( 'woocommerce_after_main_content' )includes/templates/single-product-template.php:69 -
Xcodesol Shop BuilderFewer than 10 installs
do_action( 'woocommerce_after_main_content' )renderers/product-archive.php:34 -
Asuka Product DesignerFewer than 10 installs
do_action( 'woocommerce_after_main_content' )templates/frontend/woocommerce-product-full-width.php:54 -
Whalet PaymentFewer than 10 installs
do_action( 'woocommerce_after_main_content' )templates/whalet-checkout.php:168
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.