I'm trying to prevent woocommerce from updating the user meta (saved billing and shipping user addresses) in the checkout if the user enters a different address.
in class-wc-checkout.php there is a woocommerce_checkout_update_customer_data filter which is set to true, but I need to know how to override this and set it to false.
Any ideas?
Thanks very much
Luke
add_filter('woocommerce_checkout_update_customer_data', '__return_false' );
Did the trick! Thanks @helgatheviking
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With