woocommerce_update_cart_validation filter-hookWC 1.0

Update cart validation.

Usage

add_filter( 'woocommerce_update_cart_validation', 'wp_kama_woocommerce_update_cart_validation_filter', 10, 4 );

/**
 * Function for `woocommerce_update_cart_validation` filter-hook.
 * 
 * @param  $true          
 * @param  $cart_item_key 
 * @param  $values        
 * @param  $quantity      
 *
 * @return 
 */
function wp_kama_woocommerce_update_cart_validation_filter( $true, $cart_item_key, $values, $quantity ){

	// filter...
	return $true;
}
$true
-
$cart_item_key
-
$values
-
$quantity
-

Where the hook is called

WC_Form_Handler::update_cart_action()
woocommerce_update_cart_validation
woocommerce/includes/class-wc-form-handler.php 679
$passed_validation = apply_filters( 'woocommerce_update_cart_validation', true, $cart_item_key, $values, $quantity );

Where the hook is used in WooCommerce

Usage not found.