wc_get_customer_total_spent( int $user_id )

Get total spent by customer.


Description Description


Parameters Parameters

$user_id

(Required) User ID.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/wc-user-functions.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.