woocommerce_update_customer
Usage
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
- -
Where the hook is called
woocommerce_update_customer
woocommerce/includes/data-stores/class-wc-customer-data-store.php 219
do_action( 'woocommerce_update_customer', $customer->get_id(), $customer );
Where the hook is used in WooCommerce
woocommerce/src/Admin/API/Reports/Customers/DataStore.php 99
add_action( 'woocommerce_update_customer', array( __CLASS__, 'update_registered_customer' ) );