WordPress at a glance
function is not described

wc_get_customer_total_spent() WC 1.0

Get total spent by customer.

No Hooks.

Return

String. Nothing.

Usage

wc_get_customer_total_spent( $user_id );
$user_id(int) (required)
User ID.

Code of wc_get_customer_total_spent() WC 5.3.0

<?php
function wc_get_customer_total_spent( $user_id ) {
	$customer = new WC_Customer( $user_id );
	return $customer->get_total_spent();
}