edd_get_purchase_stats_by_user( int|string $user = '' )
Get Purchase Status for User
Description Description
Retrieves the purchase count and the total amount spent for a specific user
Parameters Parameters
- $user
-
(Optional) - the ID or email of the customer to retrieve stats for
Default value: ''
- $mode
-
(Required) - "test" or "live"
Return Return
(array)
Source Source
File: includes/user-functions.php
Changelog Changelog
Version | Description |
---|---|
1.6 | Introduced. |