woocommerce_checkout_update_customer
Action hook to adjust customer before save.
Usage
add_action( 'woocommerce_checkout_update_customer', 'wp_kama_woocommerce_checkout_update_customer_action', 10, 2 );
/**
* Function for `woocommerce_checkout_update_customer` action-hook.
*
* @param $customer
* @param $data
*
* @return void
*/
function wp_kama_woocommerce_checkout_update_customer_action( $customer, $data ){
// action...
}
- $customer
- -
- $data
- -
Changelog
| Since 3.0.0 | Introduced. |
Where the hook is called
woocommerce_checkout_update_customer
woocommerce/includes/class-wc-checkout.php 1237
do_action( 'woocommerce_checkout_update_customer', $customer, $data );