Customer update hook
This commit is contained in:
parent
b97f6c9eb1
commit
5bfb372f01
|
@ -835,6 +835,13 @@ class WC_Checkout {
|
|||
$customer->update_meta_data( $key, $value );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Action hook to adjust customer before save.
|
||||
* @since 2.7.0
|
||||
*/
|
||||
do_action( 'woocommerce_checkout_update_customer', $customer, $data );
|
||||
|
||||
$customer->save();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue