woocommerce_checkout_update_customer хук-событиеWC 3.0.0

Action hook to adjust customer before save.

Использование

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
-

Список изменений

С версии 3.0.0 Введена.

Где вызывается хук

WC_Checkout::process_customer()
woocommerce_checkout_update_customer
woocommerce/includes/class-wc-checkout.php 1184
do_action( 'woocommerce_checkout_update_customer', $customer, $data );

Где используется хук в WooCommerce

Использование не найдено.