WordPress action hook

woocommerce_before_single_product_summary

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

“Hook: woocommerce_before_single_product_summary.”

How to use woocommerce_before_single_product_summary

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

25 plugins that fire woocommerce_before_single_product_summary

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_before_single_product_summary' ) templates/content-single-product.php:43
  2. ShopLentor icon ShopLentor80,000+ installs do_action( 'woocommerce_before_single_product_summary' ) includes/addons/wb_product_image.php:151
  3. Simple Membership icon Simple Membership40,000+ installs do_action( 'woocommerce_before_single_product_summary' ) views/template-overrides/woocommerce/content-single-product.php:56
  4. FunnelKit icon FunnelKit30,000+ installs do_action( 'woocommerce_before_single_product_summary' ) modules/checkouts/public/template-common/product-variable-dropdown.php:19
  5. Genesis Connect for WooCommerce icon Genesis Connect for WooCommerce10,000+ installs do_action( 'woocommerce_before_single_product_summary' ) templates/single-product.php:59
  6. WPFunnels icon WPFunnels5,000+ installs do_action( 'woocommerce_before_single_product_summary' ) public/modules/checkout/templates-style/order-bump-template-popup.php:88
  7. WC Builder icon WC Builder1,000+ installs do_action( 'woocommerce_before_single_product_summary' ) includes/addons/product_image.php:31
  8. Food Online for WooCommerce icon Food Online for WooCommerce300+ installs do_action( 'woocommerce_before_single_product_summary' ) templates/woocommerce/content-single-product.php:52
  9. Shopready icon Shopready100+ installs do_action( 'woocommerce_before_single_product_summary' ) src/extension/templates/presets/product/content-one.php:45
  10. ShopMaker icon ShopMaker90+ installs do_action( 'woocommerce_before_single_product_summary' ) classes/core/swpsm-quickview.php:45
  11. Pronto icon Pronto80+ installs do_action( 'woocommerce_before_single_product_summary' ) theme/single-product.php:30
  12. WPMozo Product Carousel for WooCommerce icon WPMozo Product Carousel for WooCommerce70+ installs do_action( 'woocommerce_before_single_product_summary' ) includes/blocks/product-carousel/functions.php:525
  13. WPMozo Product Grid for WooCommerce icon WPMozo Product Grid for WooCommerce70+ installs do_action( 'woocommerce_before_single_product_summary' ) includes/blocks/product-grid/functions.php:596
  14. Nekto Core icon Nekto Core40+ installs do_action( 'woocommerce_before_single_product_summary' ) woocommerce/content-single-product.php:43
  15. Comparis icon Comparis10+ installs do_action( 'woocommerce_before_single_product_summary' ) templates/woocommerce/content-single-product.php:38
  16. NoorPDP icon NoorPDP10+ installs do_action( 'woocommerce_before_single_product_summary' ) build/blocks/product-title/render.php:34
  17. UnikForce Elementor WooCommerce Builder icon UnikForce Elementor WooCommerce BuilderFewer than 10 installs do_action( 'woocommerce_before_single_product_summary' ) includes/widgets/product-image/control.php:145
  18. Single Page Shopping icon Single Page ShoppingFewer than 10 installs do_action( 'woocommerce_before_single_product_summary' ) templates/single-product-override/override-single-product-summary.php:26
  19. CardGrid for WooCommerce icon CardGrid for WooCommerceFewer than 10 installs do_action( 'woocommerce_before_single_product_summary' ) templates/engine-wrapper.php:80
  20. ShopGlut icon ShopGlutFewer than 10 installs do_action( 'woocommerce_before_single_product_summary' ) modules/product-page/frontend/class-shopglut-product-page.php:250
  21. Preloader Studio icon Preloader StudioFewer than 10 installs do_action( 'woocommerce_before_single_product_summary' ) templates/single-product.php:36
  22. WEBD Woo Event Bookings icon WEBD Woo Event BookingsFewer than 10 installs do_action( 'woocommerce_before_single_product_summary' ) templates/content-single-product.php:48
  23. SMT Toolkit for WooCommerce icon SMT Toolkit for WooCommerceFewer than 10 installs do_action( 'woocommerce_before_single_product_summary' ) includes/modules/ajax-archive/class-ajax-archive-frontend.php:395
  24. Polanger Dating for WordPress icon Polanger Dating for WordPressFewer than 10 installs do_action( 'woocommerce_before_single_product_summary' ) templates/integrations/woocommerce/single-product.php:36
  25. Cross/Upsell Popup for WooCommerce icon Cross/Upsell Popup for WooCommerceFewer than 10 installs do_action( 'woocommerce_before_single_product_summary' ) views/theme.php:30

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.