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


Top ↑

Return Return

(boolean) - true if has purchased, false otherwise


Top ↑

Source Source

File: includes/user-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.