apply_filters( 'woocommerce_add_to_cart_validation', $bool, $product_id, $quantity, $variation_id, $variation, $cart_item_data );

WC built-in filter to add cart of variation product.

Parameters #

Returns default true
(int) Get the product ID
(int) Get cart quantity
(int) Get the variation ID
Get the variation
Get cart items data

Return #

(boolean) Returns default true.

File Location #


Still no luck? We can help!

Submit a Request

Contact us and we’ll get back to you as soon as possible.

%d bloggers like this: