WordPress action hook

woocommerce_after_single_product

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

“Hook: woocommerce_after_single_product.”

How to use woocommerce_after_single_product

It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'woocommerce_after_single_product', function( $product_id ) {
	// Your code runs here.
}, 10, 1 );

Argument names come from Xpro Addons's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

43 plugins that fire woocommerce_after_single_product

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_single_product' ) templates/content-single-product.php:76
  2. ShopEngine icon ShopEngine90,000+ installs do_action( 'woocommerce_after_single_product' ) core/page-templates/hooks/single.php:79
  3. ShopLentor icon ShopLentor80,000+ installs do_action( 'woocommerce_after_single_product' ) wl-woo-templates/single-product.php:56
  4. Xpro Addons icon Xpro Addons40,000+ installs do_action( 'woocommerce_after_single_product', $product_id ) classes/class-ajax-handler.php:744
  5. Simple Membership icon Simple Membership40,000+ installs do_action( 'woocommerce_after_single_product' ) views/template-overrides/woocommerce/content-single-product.php:91
  6. Thim Elementor Kit icon Thim Elementor Kit20,000+ installs do_action( 'woocommerce_after_single_product' ) inc/modules/single-product/class-init.php:131
  7. LA-Studio Element Kit for Elementor icon LA-Studio Element Kit for Elementor10,000+ installs do_action( 'woocommerce_after_single_product' ) includes/modules/woocommerce/documents/product.php:93
  8. Genesis Connect for WooCommerce icon Genesis Connect for WooCommerce10,000+ installs do_action( 'woocommerce_after_single_product' ) templates/single-product.php:69
  9. Ibtana icon Ibtana5,000+ installs do_action( 'woocommerce_after_single_product' ) inc/tpl/iepa-single-product.php:10
  10. WowStore icon WowStore4,000+ installs do_action( 'woocommerce_after_single_product' ) addons/builder/templates/page.php:214
  11. Ultimate Store Kit icon Ultimate Store Kit3,000+ installs do_action( 'woocommerce_after_single_product' ) includes/builder/templates/woocommerce/edit-address.php:47
  12. Kadence for WooCommerce and Elementor icon Kadence for WooCommerce and Elementor3,000+ installs do_action( 'woocommerce_after_single_product' ) templates/product-elementor.php:53
  13. Responsive Addons for Elementor icon Responsive Addons for Elementor3,000+ installs do_action( 'woocommerce_after_single_product' ) includes/modules-manager/theme-builder/templates/woocommerce/single-product.php:55
  14. The Pack Elementor addon icon The Pack Elementor addon2,000+ installs do_action( 'woocommerce_after_single_product' ) includes/header-footer/includes/modules/woocommerce/documents/product.php:135
  15. WC Builder icon WC Builder1,000+ installs do_action( 'woocommerce_after_single_product' ) woo-templates/content-single-product.php:44
  16. ShopPress icon ShopPress600+ installs do_action( 'woocommerce_after_single_product' ) public/templates/editor-single-product.php:25
  17. ST Elementor Addons icon ST Elementor Addons500+ installs do_action( 'woocommerce_after_single_product' ) theme-builder/includes/modules-manager/theme-builder/templates/woocommerce/single-product.php:55
  18. STAGGS icon STAGGS400+ installs do_action( 'woocommerce_after_single_product' ) public/templates/inline/template-classic.php:114
  19. StoreBuild icon StoreBuild400+ installs do_action( 'woocommerce_after_single_product' ) public/woocommerce/content-single-product.php:77
  20. Noah Shop Builder for WooCommerce icon Noah Shop Builder for WooCommerce300+ installs do_action( 'woocommerce_after_single_product' ) includes/Templates/Types/SingleProduct.php:96
  21. Shopready icon Shopready100+ installs do_action( 'woocommerce_after_single_product' ) src/extension/templates/presets/product/content-one.php:81
  22. ShopMaker icon ShopMaker90+ installs do_action( 'woocommerce_after_single_product' ) templates/sm-redirect/content-single-product.php:72
  23. Nekto Core icon Nekto Core40+ installs do_action( 'woocommerce_after_single_product' ) woocommerce/content-single-product.php:63
  24. ShopCred icon ShopCred30+ installs do_action( 'woocommerce_after_single_product' ) includes/builder/page.php:144
  25. Pizza builder for WooCommerce icon Pizza builder for WooCommerce30+ installs do_action( 'woocommerce_after_single_product' ) templates/pizza/quick-view.php:101
  26. Themofy Addons for Elementor icon Themofy Addons for Elementor20+ installs do_action( 'woocommerce_after_single_product' ) modules/theme-builder/includes/class-locations.php:939
  27. Educat Elementor LMS Addon icon Educat Elementor LMS Addon20+ installs do_action( 'woocommerce_after_single_product' ) admin/theme-builder/includes/modules/woocommerce/documents/product.php:135
  28. NoorPDP icon NoorPDP10+ installs do_action( 'woocommerce_after_single_product' ) templates/single-product-layout.php:55
  29. Custom Builder for Elementor and WooCommerce icon Custom Builder for Elementor and WooCommerce10+ installs do_action( 'woocommerce_after_single_product' ) templates/woocommerce/content-single-product.php:57
  30. Onex Custom Woo Builder icon Onex Custom Woo Builder10+ installs do_action( 'woocommerce_after_single_product' ) templates/woocommerce/content-single-product.php:57
  31. WooLayout icon WooLayout10+ installs do_action( 'woocommerce_after_single_product' ) woocommerce/content-single-product.php:214
  32. Comparis icon Comparis10+ installs do_action( 'woocommerce_after_single_product' ) templates/woocommerce/content-single-product.php:77
  33. CardGrid for WooCommerce icon CardGrid for WooCommerceFewer than 10 installs do_action( 'woocommerce_after_single_product' ) templates/engine-wrapper.php:85
  34. ShopGlut icon ShopGlutFewer than 10 installs do_action( 'woocommerce_after_single_product' ) modules/product-page/frontend/class-shopglut-product-page.php:263
  35. Preloader Studio icon Preloader StudioFewer than 10 installs do_action( 'woocommerce_after_single_product' ) templates/single-product.php:55
  36. DestinX Product Configurator for WooCommerce icon DestinX Product Configurator for WooCommerceFewer than 10 installs do_action( 'woocommerce_after_single_product' ) woocommerce/content-single-product.php:52
  37. WEBD Woo Event Bookings icon WEBD Woo Event BookingsFewer than 10 installs do_action( 'woocommerce_after_single_product' ) templates/content-single-product.php:86
  38. Zadex Page Builder icon Zadex Page BuilderFewer than 10 installs do_action( 'woocommerce_after_single_product' ) includes/WooCommerce/WooCommerce.php:230
  39. SingleGrid PDP Builder for WooCommerce icon SingleGrid PDP Builder for WooCommerceFewer than 10 installs do_action( 'woocommerce_after_single_product' ) includes/templates/single-product-template.php:61
  40. Polanger Dating for WordPress icon Polanger Dating for WordPressFewer than 10 installs do_action( 'woocommerce_after_single_product' ) templates/integrations/woocommerce/single-product.php:49
  41. Xcodesol Shop Builder icon Xcodesol Shop BuilderFewer than 10 installs do_action( 'woocommerce_after_single_product' ) renderers/single-product.php:35
  42. Asuka Product Designer icon Asuka Product DesignerFewer than 10 installs do_action( 'woocommerce_after_single_product' ) templates/frontend/woocommerce-product-full-width.php:50
  43. UnikForce Elementor WooCommerce Builder icon UnikForce Elementor WooCommerce BuilderFewer than 10 installs do_action( 'woocommerce_after_single_product' ) woo-templates/single-product.php:53

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.