wc_get_customer_total_spent( int $user_id )
Get total spent by customer.
Description Description
Parameters Parameters
- $user_id
-
(Required) User ID.
Return Return
(string)
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(); }