woocommerce_before_single_product_summary хук-событиеWC 1.0

Hook: woocommerce_before_single_product_summary.

Использование

add_action( 'woocommerce_before_single_product_summary', 'wp_kama_woocommerce_before_single_product_summary_action' );

/**
 * Function for `woocommerce_before_single_product_summary` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_before_single_product_summary_action(){

	// action...
}

Где вызывается хук

В файле: /templates/content-single-product.php
woocommerce_before_single_product_summary
woocommerce/templates/content-single-product.php 43
do_action( 'woocommerce_before_single_product_summary' );

Где используется хук в WooCommerce

woocommerce/includes/wc-template-hooks.php 120
add_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );
woocommerce/includes/wc-template-hooks.php 40
add_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_sale_flash', 10 );