woocommerce_quantity_input_min хук-фильтрWC 1.0

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

add_filter( 'woocommerce_quantity_input_min', 'wp_kama_woocommerce_quantity_input_min_filter', 10, 2 );

/**
 * Function for `woocommerce_quantity_input_min` filter-hook.
 * 
 * @param  $product_min_purchase_quantity 
 * @param  $product                       
 *
 * @return 
 */
function wp_kama_woocommerce_quantity_input_min_filter( $product_min_purchase_quantity, $product ){

	// filter...
	return $product_min_purchase_quantity;
}
$product_min_purchase_quantity
-
$product
-

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

В файле: /templates/single-product/add-to-cart/simple.php
woocommerce_quantity_input_min
woocommerce/templates/single-product/add-to-cart/simple.php 40
'min_value'   => apply_filters( 'woocommerce_quantity_input_min', $product->get_min_purchase_quantity(), $product ),
woocommerce/templates/single-product/add-to-cart/variation-add-to-cart-button.php 22
'min_value'   => apply_filters( 'woocommerce_quantity_input_min', $product->get_min_purchase_quantity(), $product ),
woocommerce/templates/single-product/add-to-cart/grouped.php 75
'min_value'   => apply_filters( 'woocommerce_quantity_input_min', 0, $grouped_product_child ),
woocommerce/includes/wc-template-functions.php 1791
'min_value'    => apply_filters( 'woocommerce_quantity_input_min', 0, $product ),

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

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