woocommerce_update_customer хук-событиеWC 1.0

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

add_action( 'woocommerce_update_customer', 'wp_kama_woocommerce_update_customer_action', 10, 2 );

/**
 * Function for `woocommerce_update_customer` action-hook.
 * 
 * @param  $customer_id 
 * @param  $customer    
 *
 * @return void
 */
function wp_kama_woocommerce_update_customer_action( $customer_id, $customer ){

	// action...
}
$customer_id
-
$customer
-

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

WC_Customer_Data_Store::update()
woocommerce_update_customer
woocommerce/includes/data-stores/class-wc-customer-data-store.php 218
do_action( 'woocommerce_update_customer', $customer->get_id(), $customer );

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

woocommerce/src/Admin/API/Reports/Customers/DataStore.php 89
add_action( 'woocommerce_update_customer', array( __CLASS__, 'update_registered_customer' ) );