WordPress at Your Fingertips
function is not described

WC_Customer_Data_Store_Session::get_total_spent() public WC 3.0.0

Return how much money this customer has spent.

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

No Hooks.

Return

float.

Usage

$WC_Customer_Data_Store_Session = new WC_Customer_Data_Store_Session();
$WC_Customer_Data_Store_Session->get_total_spent( $customer );
$customer(WC_Customer) (required) (passed by reference — &)
Customer object.

Changelog

Since 3.0.0 Introduced.

Code of WC_Customer_Data_Store_Session::get_total_spent() WC 5.7.1

public function get_total_spent( &$customer ) {
	return 0;
}