WC_Customer_Data_Store_Interface::get_total_spent()
Return how much money this customer has spent.
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.
WC_Customer_Data_Store_Interface::get_total_spent() WC Customer Data Store Interface::get total spent code WC 9.7.1
public function get_total_spent( &$customer );