WordPress at Your Fingertips
function is not described

WC_Customer::get_total_spent() public WC 1.0

Return how much money this customer has spent.

{} It's a method of the class: WC_Customer{}

No Hooks.

Return

float.

Usage

$WC_Customer = new WC_Customer();
$WC_Customer->get_total_spent();

Code of WC_Customer::get_total_spent() WC 6.1.1

public function get_total_spent() {
	return $this->data_store->get_total_spent( $this );
}