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:
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.
-
WooCommerce7+ million installs
do_action( 'woocommerce_before_single_product_summary' )templates/content-single-product.php:43 -
ShopLentor80,000+ installs
do_action( 'woocommerce_before_single_product_summary' )includes/addons/wb_product_image.php:151 -
Simple Membership40,000+ installs
do_action( 'woocommerce_before_single_product_summary' )views/template-overrides/woocommerce/content-single-product.php:56 -
FunnelKit30,000+ installs
do_action( 'woocommerce_before_single_product_summary' )modules/checkouts/public/template-common/product-variable-dropdown.php:19 -
Genesis Connect for WooCommerce10,000+ installs
do_action( 'woocommerce_before_single_product_summary' )templates/single-product.php:59 -
WPFunnels5,000+ installs
do_action( 'woocommerce_before_single_product_summary' )public/modules/checkout/templates-style/order-bump-template-popup.php:88 -
WC Builder1,000+ installs
do_action( 'woocommerce_before_single_product_summary' )includes/addons/product_image.php:31 -
Food Online for WooCommerce300+ installs
do_action( 'woocommerce_before_single_product_summary' )templates/woocommerce/content-single-product.php:52 -
Shopready100+ installs
do_action( 'woocommerce_before_single_product_summary' )src/extension/templates/presets/product/content-one.php:45 -
ShopMaker90+ installs
do_action( 'woocommerce_before_single_product_summary' )classes/core/swpsm-quickview.php:45 -
Pronto80+ installs
do_action( 'woocommerce_before_single_product_summary' )theme/single-product.php:30 -
WPMozo Product Carousel for WooCommerce70+ installs
do_action( 'woocommerce_before_single_product_summary' )includes/blocks/product-carousel/functions.php:525 -
WPMozo Product Grid for WooCommerce70+ installs
do_action( 'woocommerce_before_single_product_summary' )includes/blocks/product-grid/functions.php:596 -
Nekto Core40+ installs
do_action( 'woocommerce_before_single_product_summary' )woocommerce/content-single-product.php:43 -
Comparis10+ installs
do_action( 'woocommerce_before_single_product_summary' )templates/woocommerce/content-single-product.php:38 -
NoorPDP10+ installs
do_action( 'woocommerce_before_single_product_summary' )build/blocks/product-title/render.php:34 -
UnikForce Elementor WooCommerce BuilderFewer than 10 installs
do_action( 'woocommerce_before_single_product_summary' )includes/widgets/product-image/control.php:145 -
Single Page ShoppingFewer than 10 installs
do_action( 'woocommerce_before_single_product_summary' )templates/single-product-override/override-single-product-summary.php:26 -
CardGrid for WooCommerceFewer than 10 installs
do_action( 'woocommerce_before_single_product_summary' )templates/engine-wrapper.php:80 -
ShopGlutFewer than 10 installs
do_action( 'woocommerce_before_single_product_summary' )modules/product-page/frontend/class-shopglut-product-page.php:250 -
Preloader StudioFewer than 10 installs
do_action( 'woocommerce_before_single_product_summary' )templates/single-product.php:36 -
WEBD Woo Event BookingsFewer than 10 installs
do_action( 'woocommerce_before_single_product_summary' )templates/content-single-product.php:48 -
SMT Toolkit for WooCommerceFewer than 10 installs
do_action( 'woocommerce_before_single_product_summary' )includes/modules/ajax-archive/class-ajax-archive-frontend.php:395 -
Polanger Dating for WordPressFewer than 10 installs
do_action( 'woocommerce_before_single_product_summary' )templates/integrations/woocommerce/single-product.php:36 -
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.