woo-address-book
woo-address-book copied to clipboard
prevent to add new
trafficstars
Hi, It would be good to prevent save to db, if limit_saved_addresses exceed. Now there is no "Add new" in select, but if you populated POST data, it will be saved. So in functions
- ajax_checkout_update
- woocommerce_checkout_update_customer_data
there should be condition limit_saved_addresses as well.
Also it would be nice to have apply_filters( 'limit_saved_addresses', or something logic for prevent users save new address at all. We are importing address to database and our ecommerce dont allowed edit custom address ( we have b2b customers ).
Thank you