Customer update hook

This commit is contained in:
Mike Jolley 2017-01-10 14:09:50 +00:00
parent b97f6c9eb1
commit 5bfb372f01
1 changed files with 7 additions and 0 deletions

View File

@ -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();
}