woocommerce_checkout_update_customer_data

woocommerce_checkout_update_customer_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.5.4.1

apply_filters('woocommerce_checkout_update_customer_data') is found 1 times:

  • /includes/class-wc-checkout.php line 1056
    			add_user_to_blog( get_current_blog_id(), $customer_id, 'customer' );
    		}
    
    		// Add customer info from other fields.
    		if ( $customer_id && apply_filters( 'woocommerce_checkout_update_customer_data', true, $this ) ) {
    			$customer = new WC_Customer( $customer_id );
    
    			if ( ! empty( $data['billing_first_name'] ) && '' === $customer->get_first_name() ) {
    				$customer->set_first_name( $data['billing_first_name'] );
    			}