edd_has_user_purchased( int $user_id, array $downloads, int $variable_price_id = null )
Has User Purchased
Description Description
Checks to see if a user has purchased a download.
Parameters Parameters
- $user_id
-
(Required) - the ID of the user to check
- $downloads
-
(Required) - Array of IDs to check if purchased. If an int is passed, it will be converted to an array
- $variable_price_id
-
(Optional) - the variable price ID to check for
Default value: null
Return Return
(boolean) - true if has purchased, false otherwise
Source Source
File: includes/user-functions.php
Changelog Changelog
Version | Description |
---|---|
1.0 | Introduced. |