woocommerce-blocks
woocommerce-blocks copied to clipboard
woocommerce_loop_add_to_cart_args filter for consistent behavior
Describe the bug
All product blocks (such as Newest Products, On-Sale Products, Top-Rated Products, Hand-Picked Products) do not contain filters to be consistent with the WooCommerce shop page.
More specifically, I mean the woocommerce_loop_add_to_cart_args
filter. It allows developers to edit data and attributes of each "add to cart" button in the shop loop.
Expected behavior
I would expect the product blocks have the same (or a similar) filter as they serve more or less the same function as the Shop page (= to list products). Many developers wanting to change the "add to cart" button on the Shop page will want the exact same edits on those blocks.
Could the woocommerce_loop_add_to_cart_args
filter be added to the get_add_to_cart
function?