woocommerce_store_api_checkout_update_customer_from_request

woocommerce_store_api_checkout_update_customer_from_request

Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_store_api_checkout_update_customer_from_request') is found 2 times:

  • /src/StoreApi/Routes/V1/Checkout.php line 545
    		 *
    		 * @param \WC_Customer $customer Customer object.
    		 * @param \WP_REST_Request $request Full details about the request.
    		 */
    		do_action( 'woocommerce_store_api_checkout_update_customer_from_request', $customer, $request );
    
    		$customer->save();
    	}
    
    	/**
    	 * Gets the chosen payment method from the request.
    
  • /src/StoreApi/Routes/V1/CheckoutOrder.php line 218
    		 *
    		 * @param \WC_Customer $customer Customer object.
    		 * @param \WP_REST_Request $request Full details about the request.
    		 */
    		do_action( 'woocommerce_store_api_checkout_update_customer_from_request', $customer, $request );
    
    		$customer->save();
    
    		$this->order->set_billing_address( $billing );
    		$this->order->set_shipping_address( $shipping );
    		$this->order->save();