WordPress at Your Fingertips
function is not described

WC_Customer_Data_Store_Interface::get_total_spent() public WC 1.0

Return how much money this customer has spent.

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

No Hooks.

Return

float.

Usage

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

Code of WC_Customer_Data_Store_Interface::get_total_spent() WC 5.6.0

public function get_total_spent( &$customer );