woocommerce_before_single_product_summary

WooCommerce runs woocommerce_before_single_product_summary before opening the summary column in its classic single-product template. The action has no arguments. By default, the sale badge and product image gallery are added here, outside the column containing the title, price, and purchase controls.

TypeAction hook
ArgumentsNone
SourceWooCommerce single-product template

Add a note after the gallery

add_action( 'woocommerce_before_single_product_summary', function () {
    echo '<p class="product-notice">Please review the product details.</p>';
}, 30 );

WooCommerce normally outputs the sale badge at priority 10 and product images at 20, so priority 30 runs after them. It does not insert the note inside the gallery or the product summary. Add this callback through a site-specific plugin or child theme's functions.php and check how its markup fits the page layout. Escape dynamic text before output; the example uses a fixed message.

Placement in different templates

HoverCraft places the gallery beside the product details on wider screens and stacks them on smaller screens. Extra elements at this hook can affect that layout, so check both views. The theme's presentation is described in WooCommerce Product Pages. For content among the title, price, and add-to-cart controls, use woocommerce_single_product_summary instead.

These priorities and positions describe the classic PHP template. Themes or plugins can move callbacks, and a block-based product template may not run this hook at the same point.