woocommerce_before_single_product
Hook: woocommerce_before_single_product.
Использование
add_action( 'woocommerce_before_single_product', 'wp_kama_woocommerce_before_single_product_action' ); /** * Function for `woocommerce_before_single_product` action-hook. * * @return void */ function wp_kama_woocommerce_before_single_product_action(){ // action... }
Где вызывается хук
woocommerce_before_single_product
woocommerce/templates/content-single-product.php 27
do_action( 'woocommerce_before_single_product' );
Где используется хук в WooCommerce
woocommerce/includes/wc-template-hooks.php 306
add_action( 'woocommerce_before_single_product', 'woocommerce_output_all_notices', 10 );