Function edd_has_user_purchased
Has User Purchased
Checks to see if a user has purchased a download.
Package: EDD\Functions
Copyright: Copyright (c) 2013, Pippin Williamson
License: GNU Public License
Since: 1.0
Located at includes/user-functions.php
Copyright: Copyright (c) 2013, Pippin Williamson
License: GNU Public License
Since: 1.0
Located at includes/user-functions.php
Parameters summary
integer |
$user_id |
- the ID of the user to check |
array |
$downloads |
- Array of IDs to check if purchased. If an int is passed, it will be converted to an array |
integer |
$variable_price_id = null |
- the variable price ID to check for |
Return value summary
boolean
|
- true if has purchased, false otherwise |