woocommerce_store_api_cart_update_customer_from_request

woocommerce_store_api_cart_update_customer_from_request

Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_store_api_cart_update_customer_from_request') is found 1 times:

  • /src/StoreApi/Routes/V1/CartUpdateCustomer.php line 218
    		 *
    		 * @param \WC_Customer $customer Customer object.
    		 * @param \WP_REST_Request $request Full details about the request.
    		 */
    		do_action( 'woocommerce_store_api_cart_update_customer_from_request', $customer, $request );
    
    		$customer->save();
    
    		$this->cart_controller->calculate_totals();
    
    		return rest_ensure_response( $this->schema->get_item_response( $cart ) );