woocommerce_before_variations_form │ хук-событие │ WC 2.4.0

Fires at the top of the variations form, inside the form element.

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

add_action( 'woocommerce_before_variations_form', 'wp_kama_woocommerce_before_variations_form_action' );

/**
 * Function for `woocommerce_before_variations_form` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_before_variations_form_action(){
	// action...
}

Список изменений

С версии 2.4.0 Введена.

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

В файле: /templates/single-product/add-to-cart/variable.php
woocommerce_before_variations_form
woocommerce/templates/single-product/add-to-cart/variable.php 40
do_action( 'woocommerce_before_variations_form' );

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

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