Disable woocommerce_checkout_update_customer_data

I am trying to prevent woocommerce from updating custom meta (saved billing and delivery addresses) at the checkout if the user enters a different address.

in class-wc-checkout.php there is a woocommerce_checkout_update_customer_data filter that is set to true, but I need to know how to override this and set it to false.

Any ideas?

Many thanks

Luke

+4
source share
1 answer

add_filter('woocommerce_checkout_update_customer_data', '__return_false' );

Did the trick! Thanks @helgatheviking

+2
source

All Articles