Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable woocommerce_checkout_update_customer_data

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

like image 213
Luke Seall Avatar asked Nov 08 '14 08:11

Luke Seall


1 Answers

add_filter('woocommerce_checkout_update_customer_data', '__return_false' );

Did the trick! Thanks @helgatheviking

like image 184
Luke Seall Avatar answered Nov 17 '22 02:11

Luke Seall